mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
LibGfx+LibGUI+Clients: Make fonts findable by their qualified name
The qualified name of a font is "<Family> <Size> <Weight>". You can get the QN of a Font via the Font::qualified_name() API, and you can get any system font by QN from the GUI::FontDatabase. :^)
This commit is contained in:
parent
260b52215c
commit
9d347352a1
8 changed files with 57 additions and 61 deletions
|
@ -151,6 +151,8 @@ public:
|
|||
const String& family() const { return m_family; }
|
||||
void set_family(String family) { m_family = move(family); }
|
||||
|
||||
String qualified_name() const;
|
||||
|
||||
private:
|
||||
Font(String name, String family, unsigned* rows, u8* widths, bool is_fixed_width, u8 glyph_width, u8 glyph_height, u8 glyph_spacing, FontTypes type, u8 baseline, u8 mean_line, u8 presentation_size, u16 weight);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue