From: Kenichi Handa Date: Fri, 19 Dec 2008 05:39:44 +0000 (+0000) Subject: (ftfont_open): Genarate a multibyte string if given X-Git-Tag: emacs-pretest-23.0.90~985 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3299c55202d903b9b3b44bd92554d1875ddb0071;p=emacs.git (ftfont_open): Genarate a multibyte string if given names are utf-8. --- 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));