1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:57:44 +00:00

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
parent 5a70ccecb3
commit 0f41f5d9ba
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();