summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2008-07-09 02:02:14 +0000
committerKenichi Handa <handa@m17n.org>2008-07-09 02:02:14 +0000
commit634c4da043bc8acfc9d4110fc98096fb3d4dbf48 (patch)
treee6444f867e2fb1737f7b40e6a8b134ab1ae8a5c7
parent9bfd60bd6a737a2e8f12bf06de22135c05bca331 (diff)
downloademacs-634c4da043bc8acfc9d4110fc98096fb3d4dbf48.tar.gz
(xfont_open): Cancel the previous about font->vertical_centering.
-rw-r--r--src/xfont.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xfont.c b/src/xfont.c
index 9e7d68d51b8..6d529c9b54a 100644
--- a/src/xfont.c
+++ b/src/xfont.c
@@ -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;
}