changeset 107242:26b234a2e901

Addendum to last patch: add "Medium" GTK font name keyword.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 26 Feb 2010 21:09:03 -0500
parents c7ed9615fb56
children bd6485c5bd3d 8dc9cd276d24
files src/ChangeLog src/font.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Feb 26 21:06:13 2010 -0500
+++ b/src/ChangeLog	Fri Feb 26 21:09:03 2010 -0500
@@ -1,7 +1,7 @@
 2010-02-27  Chong Yidong  <cyd@stupidchicken.com>
 
-	* 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  <handa@m17n.org>
 
--- a/src/font.c	Fri Feb 26 21:06:13 2010 -0500
+++ b/src/font.c	Fri Feb 26 21:09:03 2010 -0500
@@ -1582,6 +1582,12 @@
 	      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;