changeset 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 486295710f09
children 62483065cf2b
files src/xfns.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
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))