mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
font: use PangoStyle enum
This commit is contained in:
parent
94ead35227
commit
58d22d05e2
3 changed files with 6 additions and 17 deletions
|
|
@ -855,11 +855,11 @@ set_font_attr(struct font *font, const char *nodename, const char *content)
|
|||
font->size = atoi(content);
|
||||
} else if (!strcmp(nodename, "slant")) {
|
||||
if (!strcasecmp(content, "italic")) {
|
||||
font->slant = FONT_SLANT_ITALIC;
|
||||
font->slant = PANGO_STYLE_ITALIC;
|
||||
} else if (!strcasecmp(content, "oblique")) {
|
||||
font->slant = FONT_SLANT_OBLIQUE;
|
||||
font->slant = PANGO_STYLE_OBLIQUE;
|
||||
} else {
|
||||
font->slant = FONT_SLANT_NORMAL;
|
||||
font->slant = PANGO_STYLE_NORMAL;
|
||||
}
|
||||
} else if (!strcmp(nodename, "weight")) {
|
||||
if (!strcasecmp(content, "thin")) {
|
||||
|
|
@ -1474,7 +1474,7 @@ static void
|
|||
init_font_defaults(struct font *font)
|
||||
{
|
||||
font->size = 10;
|
||||
font->slant = FONT_SLANT_NORMAL;
|
||||
font->slant = PANGO_STYLE_NORMAL;
|
||||
font->weight = PANGO_WEIGHT_NORMAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue