mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
LibGfx: Remove static load_from_file() from abstract Font class
This commit is contained in:
parent
79dfe9846d
commit
b8c25bc7ff
6 changed files with 4 additions and 47 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue