LibGUI+LibGfx+LibTTF: Make fontpicker handle TTF fonts

This commit is contained in:
Stephan Unverwerth 2021-01-02 18:21:29 +01:00 committed by Andreas Kling
commit 0f41f5d9ba
Notes: sideshowbarker 2024-07-18 22:18:00 +09:00
6 changed files with 46 additions and 21 deletions

View file

@ -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();