]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_make_gc): Use the default font id of the frame for
authorKenichi Handa <handa@m17n.org>
Sun, 17 Feb 2008 02:01:59 +0000 (02:01 +0000)
committerKenichi Handa <handa@m17n.org>
Sun, 17 Feb 2008 02:01:59 +0000 (02:01 +0000)
GCs.

src/xfns.c

index ae1dea5cccce0b6192f44dda79e5f1b43793c388..0261f1b7f719fc61a9a68776d1441889362f72c6 100644 (file)
@@ -3042,6 +3042,11 @@ x_make_gc (f)
      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);