summaryrefslogtreecommitdiff
path: root/src/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/font.c b/src/font.c
index 5f1d59afe22..de84dc43d53 100644
--- a/src/font.c
+++ b/src/font.c
@@ -1576,6 +1576,12 @@ font_parse_fcname (name, font)
prop = font_intern_prop ("light", 5, 1);
FONT_SET_STYLE (font, FONT_WEIGHT_INDEX, prop);
}
+ else if (PROP_MATCH ("Book", 4))
+ {
+ prop_found = 1;
+ prop = font_intern_prop ("book", 4, 1);
+ FONT_SET_STYLE (font, FONT_WEIGHT_INDEX, prop);
+ }
else if (PROP_MATCH ("Semi-Bold", 9))
{
prop_found = 1;
@@ -1600,6 +1606,18 @@ font_parse_fcname (name, font)
prop = font_intern_prop ("oblique", 7, 1);
FONT_SET_STYLE (font, FONT_SLANT_INDEX, prop);
}
+ else if (PROP_MATCH ("Semi-Condensed", 14))
+ {
+ prop_found = 1;
+ prop = font_intern_prop ("semi-condensed", 14, 1);
+ FONT_SET_STYLE (font, FONT_WIDTH_INDEX, prop);
+ }
+ else if (PROP_MATCH ("Condensed", 9))
+ {
+ prop_found = 1;
+ prop = font_intern_prop ("condensed", 9, 1);
+ FONT_SET_STYLE (font, FONT_WIDTH_INDEX, prop);
+ }
else {
if (prop_found)
return -1; /* Unknown property in GTK-style font name. */