config: Add support for font slant and weight

This commit is contained in:
John Lindgren 2022-09-15 10:53:49 -04:00 committed by Johan Malm
parent 1fafb89cba
commit 07a83c19f0
12 changed files with 126 additions and 98 deletions

View file

@ -4,11 +4,25 @@
struct lab_data_buffer;
enum font_slant {
FONT_SLANT_NORMAL,
FONT_SLANT_ITALIC
};
enum font_weight {
FONT_WEIGHT_NORMAL,
FONT_WEIGHT_BOLD
};
struct font {
char *name;
int size;
enum font_slant slant;
enum font_weight weight;
};
struct _PangoFontDescription *font_to_pango_desc(struct font *font);
/**
* font_height - get font vertical extents
* @font: description of font including family name and size