mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGfx+WebContent: Load resource://fonts after FontDatabase construction
This is a preparation for upcoming changes where Gfx::Typeface will depend on `FontDatabase::should_force_fontconfig()`, so we will no longer be able to construct typefaces from FontDatabase constructor because of circular dependency.
This commit is contained in:
committed by
Alexander Kalenik
parent
db74244fb2
commit
99f64139d0
@@ -78,7 +78,6 @@ void FontDatabase::load_all_fonts_from_uri(StringView uri)
|
||||
FontDatabase::FontDatabase()
|
||||
: m_private(make<Private>())
|
||||
{
|
||||
load_all_fonts_from_uri("resource://fonts"sv);
|
||||
}
|
||||
|
||||
RefPtr<Gfx::Font> FontDatabase::get(FlyString const& family, float point_size, unsigned weight, unsigned width, unsigned slope)
|
||||
|
||||
Reference in New Issue
Block a user