1
Fork 0
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:
Edgar Araújo 2021-03-22 19:51:06 +00:00 committed by Andreas Kling
parent 243d7d9ecf
commit 532e0090fc
4 changed files with 76 additions and 0 deletions

View file

@ -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();