1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:47:46 +00:00

LibGfx: Remove static load_from_file() from abstract Font class

This commit is contained in:
Stephan Unverwerth 2021-01-03 17:36:04 +01:00 committed by Andreas Kling
parent 79dfe9846d
commit b8c25bc7ff
6 changed files with 4 additions and 47 deletions

View file

@ -104,7 +104,7 @@ FontDatabase::FontDatabase()
auto path = String::format("/res/fonts/%s", name.characters());
if (name.ends_with(".font")) {
if (auto font = Gfx::Font::load_from_file(path)) {
if (auto font = Gfx::BitmapFont::load_from_file(path)) {
m_private->full_name_to_font_map.set(font->qualified_name(), font);
auto typeface = get_or_create_typeface(font->family(), font->variant());
typeface->add_bitmap_font(font);