From: Kenichi Handa Date: Sun, 17 Feb 2008 02:01:59 +0000 (+0000) Subject: (x_make_gc): Use the default font id of the frame for X-Git-Tag: emacs-pretest-23.0.90~7902 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=74170e38796889b4e3491ee9044dbeb3ea641ec4;p=emacs.git (x_make_gc): Use the default font id of the frame for GCs. --- diff --git a/src/xfns.c b/src/xfns.c index ae1dea5cccc..0261f1b7f71 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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);