mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +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
|
@ -34,6 +34,21 @@
|
|||
|
||||
namespace Gfx {
|
||||
|
||||
namespace FontWeight {
|
||||
enum {
|
||||
Thin = 100,
|
||||
ExtraLight = 200,
|
||||
Light = 300,
|
||||
Regular = 400,
|
||||
Medium = 500,
|
||||
SemiBold = 600,
|
||||
Bold = 700,
|
||||
ExtraBold = 800,
|
||||
Black = 900,
|
||||
ExtraBlack = 950
|
||||
};
|
||||
}
|
||||
|
||||
class FontDatabase {
|
||||
public:
|
||||
static FontDatabase& the();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue