From 74170e38796889b4e3491ee9044dbeb3ea641ec4 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Sun, 17 Feb 2008 02:01:59 +0000 Subject: [PATCH] (x_make_gc): Use the default font id of the frame for GCs. --- src/xfns.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.39.2