1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 21:37:36 +00:00

LibGfx: Add API for loading more directories into Gfx::FontDatabase

Also make the font discovery algorithm search subdirectories as well.
This will be used by Ladybird to discover more fonts on non-Serenity
systems. :^)
This commit is contained in:
Andreas Kling 2022-09-08 12:30:25 +02:00
parent 5c2e3d1637
commit 3dc82d2fa5
2 changed files with 49 additions and 27 deletions

View file

@ -56,10 +56,14 @@ public:
void for_each_typeface(Function<void(Typeface const&)>);
void load_all_fonts_from_path(String const&);
private:
FontDatabase();
~FontDatabase() = default;
void load_fonts();
RefPtr<Typeface> get_or_create_typeface(String const& family, String const& variant);
struct Private;