summaryrefslogtreecommitdiff
path: root/src/font.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2008-05-31 09:58:27 +0000
committerKenichi Handa <handa@m17n.org>2008-05-31 09:58:27 +0000
commite4c93315ecdc925217d4f526d39563c27a61f374 (patch)
tree34f507aa7f88a9bf6e7fe46ce9e7c8e93e503fdb /src/font.c
parentdaf7e339db09be6f95f87d774830b759a0386c52 (diff)
downloademacs-e4c93315ecdc925217d4f526d39563c27a61f374.tar.gz
(font_list_entities): Fix the car part of data to be
stored in the cache.
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/font.c b/src/font.c
index 484f0257546..9e99b81614f 100644
--- a/src/font.c
+++ b/src/font.c
@@ -2441,6 +2441,8 @@ font_list_entities (frame, spec)
Lisp_Object cache = font_get_cache (f, driver_list->driver);
Lisp_Object tail = alternate_familes;
+ ASET (scratch_font_spec, FONT_TYPE_INDEX, driver_list->driver->type);
+ ASET (scratch_font_spec, FONT_FAMILY_INDEX, family);
while (1)
{
val = assoc_no_quit (scratch_font_spec, XCDR (cache));
@@ -2452,6 +2454,7 @@ font_list_entities (frame, spec)
val = driver_list->driver->list (frame, scratch_font_spec);
copy = Fcopy_font_spec (scratch_font_spec);
+ ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type);
XSETCDR (cache, Fcons (Fcons (copy, val), XCDR (cache)));
}
if (! NILP (val) && need_filtering)