LibGUI: Enable the use of font properties through GML

You can now specify the font, font_size, font_weight
and font_type (fixed_width/normal) through GML
This commit is contained in:
Edgar Araújo 2021-03-22 19:51:06 +00:00 committed by Andreas Kling
commit 532e0090fc
Notes: sideshowbarker 2024-07-18 20:58:56 +09:00
4 changed files with 76 additions and 0 deletions

View file

@ -239,9 +239,15 @@ public:
bool fill_with_background_color() const { return m_fill_with_background_color; }
const Gfx::Font& font() const { return *m_font; }
void set_font(const Gfx::Font*);
void set_font(const Gfx::Font& font) { set_font(&font); }
void set_font_family(const String&);
void set_font_size(unsigned);
void set_font_weight(unsigned);
void set_font_fixed_width(bool);
void set_global_cursor_tracking(bool);
bool global_cursor_tracking() const;