Add support for all Pango font weight options

This commit is contained in:
Simon Long 2025-04-23 14:15:08 +01:00
parent 44295c0c13
commit 07ec2b781b
3 changed files with 62 additions and 5 deletions

View file

@ -12,7 +12,17 @@ enum font_slant {
enum font_weight {
FONT_WEIGHT_NORMAL = 0,
FONT_WEIGHT_BOLD
FONT_WEIGHT_THIN,
FONT_WEIGHT_ULTRALIGHT,
FONT_WEIGHT_LIGHT,
FONT_WEIGHT_SEMILIGHT,
FONT_WEIGHT_BOOK,
FONT_WEIGHT_MEDIUM,
FONT_WEIGHT_SEMIBOLD,
FONT_WEIGHT_BOLD,
FONT_WEIGHT_ULTRABOLD,
FONT_WEIGHT_HEAVY,
FONT_WEIGHT_ULTRAHEAVY
};
struct font {