From 4ed28cf4e5fe36f460adb103865c3adcbad62da3 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Fri, 26 Feb 2010 21:09:03 -0500 Subject: [PATCH] Addendum to last patch: add "Medium" GTK font name keyword. --- src/ChangeLog | 4 ++-- src/font.c | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 67a547a8058..ac909cc7885 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,7 +1,7 @@ 2010-02-27 Chong Yidong - * font.c (font_parse_fcname): Recognize "Book", "Condensed", and - "Semi-Condensed" keywords in GTK names (Bug#5646). + * font.c (font_parse_fcname): Recognize "Book", "Condensed", + "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646). 2010-02-26 Kenichi Handa diff --git a/src/font.c b/src/font.c index de84dc43d53..765712198fe 100644 --- a/src/font.c +++ b/src/font.c @@ -1582,6 +1582,12 @@ font_parse_fcname (name, font) prop = font_intern_prop ("book", 4, 1); FONT_SET_STYLE (font, FONT_WEIGHT_INDEX, prop); } + else if (PROP_MATCH ("Medium", 6)) + { + prop_found = 1; + prop = font_intern_prop ("medium", 6, 1); + FONT_SET_STYLE (font, FONT_WEIGHT_INDEX, prop); + } else if (PROP_MATCH ("Semi-Bold", 9)) { prop_found = 1; -- 2.39.2