Mercurial > emacs
changeset 90719:3bba05d0a63c
(xic_create_xfontset2): Add debug code.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 07 Dec 2006 11:57:41 +0000 |
parents | f1d13e615070 |
children | f54d6fd16189 |
files | src/xfns.c |
diffstat | 1 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)