diff src/fontset.c @ 88482:effba1417b74

(free_realized_fontsets): Call Fclear_face_cache instead of calling free_reazlied_face.
author Kenichi Handa <handa@m17n.org>
date Mon, 13 May 2002 12:09:57 +0000
parents 8ae0d0693ed9
children 3d67875ee2b1
line wrap: on
line diff
--- a/src/fontset.c	Mon May 13 07:40:23 2002 +0000
+++ b/src/fontset.c	Mon May 13 12:09:57 2002 +0000
@@ -756,6 +756,11 @@
 {
   int id;
 
+#if 0
+  /* For the moment, this doesn't work because free_realized_face
+     doesn't remove FACE from a cache.  Until we find a solution, we
+     suppress this code, and simply use Fclear_face_cache even though
+     that is not efficient.  */
   BLOCK_INPUT;
   for (id = 0; id < ASIZE (Vfontset_table); id++)
     {
@@ -778,6 +783,9 @@
 	}
     }
   UNBLOCK_INPUT;
+#else  /* not 0 */
+  Fclear_face_cache (Qt);
+#endif /* not 0 */
 }