]> git.eshelyaron.com Git - emacs.git/commitdiff
Addendum to last patch: add "Medium" GTK font name keyword.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 27 Feb 2010 02:09:03 +0000 (21:09 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 27 Feb 2010 02:09:03 +0000 (21:09 -0500)
src/ChangeLog
src/font.c

index 67a547a805867e435e3178bdf030ca6919b02b61..ac909cc788521d75ce0491349ef2f03d1df9adad 100644 (file)
@@ -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>
 
index de84dc43d53a2311728d381ae961e9dc9fe3521e..765712198fe52ebefb96a4aed2bcf7e60b7be436 100644 (file)
@@ -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;