# HG changeset patch # User Kenichi Handa # Date 1165492661 0 # Node ID 3bba05d0a63c1c6e1f2819d9e5426965215f4eae # Parent f1d13e6150704ab24f6d4d38633ea77051e0a793 (xic_create_xfontset2): Add debug code. diff -r f1d13e615070 -r 3bba05d0a63c src/xfns.c --- a/src/xfns.c Thu Dec 07 04:14:14 2006 +0000 +++ b/src/xfns.c Thu Dec 07 11:57:41 2006 +0000 @@ -2174,6 +2174,21 @@ } #ifdef USE_FONT_BACKEND + +#ifdef DEBUG_XIC_FONTSET +static void +print_fontset_result (xfs, name) + XFtonSet xfs; + char *name; +{ + if (xfs) + fprintf (stderr, "XIC Fontset created: %s\n", name); + else + fprintf (stderr, "XIC Fontset failed: %s\n", name); +} +#endif + + static XFontSet xic_create_xfontset2 (f) struct frame *f; @@ -2210,6 +2225,9 @@ missing_list = NULL; xfs = XCreateFontSet (FRAME_X_DISPLAY (f), buf, &missing_list, &missing_count, &def_string); +#ifdef DEBUG_XIC_FONTSET + print_fontset_result (xfs, buf); +#endif if (missing_list) XFreeStringList (missing_list); if (! xfs) @@ -2241,6 +2259,9 @@ missing_list = NULL; xfs = XCreateFontSet (FRAME_X_DISPLAY (f), buf, &missing_list, &missing_count, &def_string); +#ifdef DEBUG_XIC_FONTSET + print_fontset_result (xfs, buf); +#endif if (missing_list) XFreeStringList (missing_list); if (xfs)