From 634c4da043bc8acfc9d4110fc98096fb3d4dbf48 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 9 Jul 2008 02:02:14 +0000 Subject: [PATCH] (xfont_open): Cancel the previous about font->vertical_centering. --- src/xfont.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.2