Add support for all Pango font weight options

This commit is contained in:
Simon Long 2025-04-23 17:03:02 +01:00 committed by GitHub
parent 44295c0c13
commit 6a810ad762
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 72 additions and 4 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 {