changeset 91902:153651069fb2

(x_make_gc): Use the default font id of the frame for GCs.
author Kenichi Handa <handa@m17n.org>
date Sun, 17 Feb 2008 02:01:59 +0000
parents 1469de45e945
children 8dadab0712f6
files src/xfns.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sun Feb 17 02:01:43 2008 +0000
+++ b/src/xfns.c	Sun Feb 17 02:01:59 2008 +0000
@@ -3042,6 +3042,11 @@
      Note that many default values are used.  */
 
   /* Normal video */
+#ifdef USE_FONT_BACKEND
+  if (enable_font_backend)
+    gc_values.font = FRAME_X_DISPLAY_INFO (f)->font->fid;
+  else
+#endif
   gc_values.font = FRAME_FONT (f)->fid;
   gc_values.foreground = FRAME_FOREGROUND_PIXEL (f);
   gc_values.background = FRAME_BACKGROUND_PIXEL (f);