Mercurial > emacs
diff src/xfns.c @ 90662:a81dd6ff9caa
(xic_create_xfontset): Try the default fontset name as a
last resort.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 17 Nov 2006 10:57:12 +0000 |
parents | 02cf29720f31 |
children | 42871c3ee387 |
line wrap: on
line diff
--- a/src/xfns.c Thu Nov 16 08:08:28 2006 +0000 +++ b/src/xfns.c Fri Nov 17 10:57:12 2006 +0000 @@ -2151,6 +2151,17 @@ } } xfree (fontsetname); + if (! xfs && base_fontname != xic_defaut_fontset) + { + /* Try the default fontset name at a last resort. */ + fontsetname = xic_create_fontsetname (xic_defaut_fontset, False); + xfs = XCreateFontSet (FRAME_X_DISPLAY (f), + fontsetname, &missing_list, + &missing_count, &def_string); + if (missing_list) + XFreeStringList (missing_list); + xfree (fontsetname); + } } if (FRAME_XIC_BASE_FONTNAME (f))