mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:37:35 +00:00
Everywhere: Fully qualify font names by including their slope
Fixes typefaces of the same weight but different slopes being incorrectly returned for each other by FontDatabase.
This commit is contained in:
parent
87a149c9a4
commit
96895cd22c
15 changed files with 39 additions and 25 deletions
|
@ -42,7 +42,7 @@ public:
|
|||
static void set_default_font_query(String);
|
||||
static void set_fixed_width_font_query(String);
|
||||
|
||||
RefPtr<Gfx::Font> get(const String& family, unsigned size, unsigned weight);
|
||||
RefPtr<Gfx::Font> get(const String& family, unsigned size, unsigned weight, unsigned slope);
|
||||
RefPtr<Gfx::Font> get(const String& family, const String& variant, unsigned size);
|
||||
RefPtr<Gfx::Font> get_by_name(StringView);
|
||||
void for_each_font(Function<void(const Gfx::Font&)>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue