]> git.eshelyaron.com Git - emacs.git/commitdiff
(xfont_open): Cancel the previous about font->vertical_centering.
authorKenichi Handa <handa@m17n.org>
Wed, 9 Jul 2008 02:02:14 +0000 (02:02 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 9 Jul 2008 02:02:14 +0000 (02:02 +0000)
src/xfont.c

index 9e7d68d51b83452ac64b788f501c0806e93c47d8..6d529c9b54aa10aa657da442697e97f1cbab64e3 100644 (file)
@@ -648,7 +648,10 @@ xfont_open (f, entity, pixel_size)
 
   if (NILP (fullname))
     fullname = AREF (font_object, FONT_NAME_INDEX);
-  font->vertical_centering = 0;
+  font->vertical_centering
+    = (STRINGP (Vvertical_centering_font_regexp)
+       && (fast_string_match_ignore_case
+          (Vvertical_centering_font_regexp, fullname) >= 0));
 
   return font_object;
 }