diff options
author | Edgar Araújo <edgararaj@gmail.com> | 2021-03-22 19:51:06 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-29 09:10:23 +0200 |
commit | 532e0090fc84e134f50b5b2bef7ad9c1ce4653ff (patch) | |
tree | 19ff6aaeb6d03d198b7769201f98456e28a62c3f /Userland/Libraries/LibGfx/FontDatabase.h | |
parent | 243d7d9ecf3bef98ec3888b1c18116cb77a19b1d (diff) | |
download | serenity-532e0090fc84e134f50b5b2bef7ad9c1ce4653ff.zip |
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
Diffstat (limited to 'Userland/Libraries/LibGfx/FontDatabase.h')
-rw-r--r-- | Userland/Libraries/LibGfx/FontDatabase.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/FontDatabase.h b/Userland/Libraries/LibGfx/FontDatabase.h index 4fb77b1d49..96d0519ae6 100644 --- a/Userland/Libraries/LibGfx/FontDatabase.h +++ b/Userland/Libraries/LibGfx/FontDatabase.h @@ -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(); |