mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
config: Add support for font slant and weight
This commit is contained in:
parent
1fafb89cba
commit
07a83c19f0
12 changed files with 126 additions and 98 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue