mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
LibGfx: Add more query methods to FontDatabase and Typeface
This commit is contained in:
parent
e504d4ef96
commit
5a70ccecb3
4 changed files with 50 additions and 9 deletions
|
@ -45,16 +45,19 @@ public:
|
|||
static Font& default_bold_fixed_width_font();
|
||||
|
||||
RefPtr<Gfx::Font> get(const String& family, unsigned size, unsigned weight);
|
||||
RefPtr<Gfx::Font> get(const String& family, const String& variant, unsigned size);
|
||||
RefPtr<Gfx::Font> get_by_name(const StringView&);
|
||||
void for_each_font(Function<void(const Gfx::Font&)>);
|
||||
void for_each_fixed_width_font(Function<void(const Gfx::Font&)>);
|
||||
|
||||
RefPtr<Typeface> get_or_create_typeface(const String& family, const String& variant);
|
||||
void for_each_typeface(Function<void(const Typeface&)>);
|
||||
|
||||
private:
|
||||
FontDatabase();
|
||||
~FontDatabase();
|
||||
|
||||
RefPtr<Typeface> get_or_create_typeface(const String& family, const String& variant);
|
||||
|
||||
struct Private;
|
||||
OwnPtr<Private> m_private;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue