1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

LibGfx: Migrate Typeface from TTF::Font to Gfx::VectorFont

This commit is contained in:
Simon Wanner 2022-04-09 10:54:25 +02:00 committed by Andreas Kling
parent 5136c5ae1a
commit 17baf05c5a
3 changed files with 14 additions and 14 deletions

View file

@ -113,7 +113,7 @@ FontDatabase::FontDatabase()
if (auto font_or_error = TTF::Font::try_load_from_file(path); !font_or_error.is_error()) {
auto font = font_or_error.release_value();
auto typeface = get_or_create_typeface(font->family(), font->variant());
typeface->set_ttf_font(move(font));
typeface->set_vector_font(move(font));
}
}
}