changeset 103246:94e71fa6e9ac

(font_find_for_lface): Copy SPEC's FONT_TYPE too.
author Kenichi Handa <handa@m17n.org>
date Mon, 18 May 2009 12:14:14 +0000
parents c878fe60e8be
children 0eb3cdddefb2
files src/font.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/font.c	Mon May 18 08:02:06 2009 +0000
+++ b/src/font.c	Mon May 18 12:14:14 2009 +0000
@@ -3272,6 +3272,7 @@
     }
 
   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);