changeset 100552:d8bfaced209a

(ftfont_open): Genarate a multibyte string if given names are utf-8.
author Kenichi Handa <handa@m17n.org>
date Fri, 19 Dec 2008 05:39:44 +0000
parents 42e9e426d886
children e42552b2edda
files src/ftfont.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ftfont.c	Fri Dec 19 05:39:19 2008 +0000
+++ b/src/ftfont.c	Fri Dec 19 05:39:44 2008 +0000
@@ -1067,10 +1067,10 @@
   ASET (font_object, FONT_TYPE_INDEX, Qfreetype);
   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));