changeset 100551:42e9e426d886

(xftfont_open): Genarate a multibyte string if give names are utf-8.
author Kenichi Handa <handa@m17n.org>
date Fri, 19 Dec 2008 05:39:19 +0000
parents ad593a3ba97e
children d8bfaced209a
files src/xftfont.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xftfont.c	Fri Dec 19 05:29:04 2008 +0000
+++ b/src/xftfont.c	Fri Dec 19 05:39:19 2008 +0000
@@ -289,10 +289,10 @@
   ASET (font_object, FONT_TYPE_INDEX, Qxft);
   len = font_unparse_xlfd (entity, size, name, 256);
   if (len > 0)
-    ASET (font_object, FONT_NAME_INDEX, make_unibyte_string (name, len));
+    ASET (font_object, FONT_NAME_INDEX, make_string (name, len));
   len = font_unparse_fcname (entity, size, name, 256);
   if (len > 0)
-    ASET (font_object, FONT_FULLNAME_INDEX, make_unibyte_string (name, len));
+    ASET (font_object, FONT_FULLNAME_INDEX, make_string (name, len));
   else
     ASET (font_object, FONT_FULLNAME_INDEX,
 	  AREF (font_object, FONT_NAME_INDEX));