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:
parent
5136c5ae1a
commit
17baf05c5a
3 changed files with 14 additions and 14 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue