From 3299c55202d903b9b3b44bd92554d1875ddb0071 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 19 Dec 2008 05:39:44 +0000 Subject: (ftfont_open): Genarate a multibyte string if given names are utf-8. --- src/ftfont.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ftfont.c') diff --git a/src/ftfont.c b/src/ftfont.c index 6cf91bd4131..4b53467ae42 100644 --- a/src/ftfont.c +++ b/src/ftfont.c @@ -1067,10 +1067,10 @@ ftfont_open (f, entity, pixel_size) 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)); -- cgit v1.2.1