From bf970f2bd118e7c2d5d478acf90d8df23521433d Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 13 Jun 2008 05:47:42 +0000 Subject: [PATCH] (Fx_create_frame, x_create_tip_frame): Register X font-driver at first. --- src/xfns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xfns.c b/src/xfns.c index 2dbbe80e097..b02c9ce8d25 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -3273,6 +3273,7 @@ This function is an internal primitive--use `make-frame' instead. */) f->resx = dpyinfo->resx; f->resy = dpyinfo->resy; + register_font_driver (&xfont_driver, f); #ifdef HAVE_FREETYPE #ifdef HAVE_XFT register_font_driver (&xftfont_driver, f); @@ -3280,7 +3281,6 @@ This function is an internal primitive--use `make-frame' instead. */) register_font_driver (&ftxfont_driver, f); #endif /* not HAVE_XFT */ #endif /* HAVE_FREETYPE */ - register_font_driver (&xfont_driver, f); x_default_parameter (f, parms, Qfont_backend, Qnil, "fontBackend", "FontBackend", RES_TYPE_STRING); @@ -4816,6 +4816,7 @@ x_create_tip_frame (dpyinfo, parms, text) f->resx = dpyinfo->resx; f->resy = dpyinfo->resy; + register_font_driver (&xfont_driver, f); #ifdef HAVE_FREETYPE #ifdef HAVE_XFT register_font_driver (&xftfont_driver, f); @@ -4823,7 +4824,6 @@ x_create_tip_frame (dpyinfo, parms, text) register_font_driver (&ftxfont_driver, f); #endif /* not HAVE_XFT */ #endif /* HAVE_FREETYPE */ - register_font_driver (&xfont_driver, f); x_default_parameter (f, parms, Qfont_backend, Qnil, "fontBackend", "FontBackend", RES_TYPE_STRING); -- 2.39.2