mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
LibGUI+LibGfx+LibTTF: Make fontpicker handle TTF fonts
This commit is contained in:
parent
5a70ccecb3
commit
0f41f5d9ba
6 changed files with 46 additions and 21 deletions
|
@ -341,7 +341,7 @@ RefPtr<Font> Font::load_from_offset(ByteBuffer&& buffer, u32 offset)
|
|||
auto head = opt_head.value();
|
||||
|
||||
if (!opt_name_slice.has_value() || !(opt_name = Name::from_slice(opt_name_slice.value())).has_value()) {
|
||||
dbg() << "Could not load Name";
|
||||
dbgln("Could not load Name");
|
||||
return nullptr;
|
||||
}
|
||||
auto name = opt_name.value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue