mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:37:36 +00:00
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:
parent
243d7d9ecf
commit
532e0090fc
4 changed files with 76 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue