diff src/xfont.c @ 96566:dec3815c40d7

(xfont_open): Cancel the previous about font->vertical_centering.
author Kenichi Handa <handa@m17n.org>
date Wed, 09 Jul 2008 02:02:14 +0000
parents d87a9f1b9378
children 12587e64cfe3
line wrap: on
line diff
--- a/src/xfont.c	Wed Jul 09 02:00:15 2008 +0000
+++ b/src/xfont.c	Wed Jul 09 02:02:14 2008 +0000
@@ -648,7 +648,10 @@
 
   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;
 }