]> git.eshelyaron.com Git - emacs.git/commitdiff
(font_find_for_lface): Copy SPEC's FONT_TYPE too.
authorKenichi Handa <handa@m17n.org>
Mon, 18 May 2009 12:14:14 +0000 (12:14 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 18 May 2009 12:14:14 +0000 (12:14 +0000)
src/font.c

index 19bc70dd976712ccec6c5ee1baa095c08646b8f4..9095d05cd3350bdda680a8ca6dd7196efcf24fbe 100644 (file)
@@ -3272,6 +3272,7 @@ font_find_for_lface (f, attrs, spec, c)
     }
 
   work = Fcopy_font_spec (spec);
+  ASET (work, FONT_TYPE_INDEX, AREF (spec, FONT_TYPE_INDEX));
   XSETFRAME (frame, f);
   size = AREF (spec, FONT_SIZE_INDEX);
   pixel_size = font_pixel_size (f, spec);