]> git.eshelyaron.com Git - emacs.git/commitdiff
(xfont_open): Adjust it for the change of
authorKenichi Handa <handa@m17n.org>
Wed, 9 Jul 2008 00:31:26 +0000 (00:31 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 9 Jul 2008 00:31:26 +0000 (00:31 +0000)
font_make_object.  Don't check Vvertical_centering_font_regexp
here.

src/xfont.c

index 8e11d20408933940d65b76aaac53f366a49e1d06..9e7d68d51b83452ac64b788f501c0806e93c47d8 100644 (file)
@@ -564,13 +564,11 @@ xfont_open (f, entity, pixel_size)
   if (! xfont)
     return Qnil;
 
-  font_object = font_make_object (VECSIZE (struct xfont_info));
+  font_object = font_make_object (VECSIZE (struct xfont_info),
+                                 entity, pixel_size);
   ASET (font_object, FONT_TYPE_INDEX, Qx);
   if (STRINGP (fullname))
     font_parse_xlfd ((char *) SDATA (fullname), font_object);
-  for (i = 1; i < FONT_ENTITY_MAX; i++)
-    ASET (font_object, i, AREF (entity, i));
-  ASET (font_object, FONT_SIZE_INDEX, make_number (pixel_size));
   if (STRINGP (fullname))
     ASET (font_object, FONT_NAME_INDEX, fullname);
   else
@@ -650,10 +648,7 @@ xfont_open (f, entity, pixel_size)
 
   if (NILP (fullname))
     fullname = AREF (font_object, FONT_NAME_INDEX);
-  font->vertical_centering
-    = (STRINGP (Vvertical_centering_font_regexp)
-       && (fast_string_match_ignore_case
-          (Vvertical_centering_font_regexp, fullname) >= 0));
+  font->vertical_centering = 0;
 
   return font_object;
 }