changeset 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 4946eb5a06ce
children dea344114c62
files src/xfont.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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;
 }