aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2008-12-19 05:39:44 +0000
committerKenichi Handa2008-12-19 05:39:44 +0000
commit3299c55202d903b9b3b44bd92554d1875ddb0071 (patch)
treef15c78c4e894e64a6f765c343ee011b2a08b2be8 /src
parent2781b4e0a3622141de935d2db10b6942ac1e950a (diff)
downloademacs-3299c55202d903b9b3b44bd92554d1875ddb0071.tar.gz
emacs-3299c55202d903b9b3b44bd92554d1875ddb0071.zip
(ftfont_open): Genarate a multibyte string if given
names are utf-8.
Diffstat (limited to 'src')
-rw-r--r--src/ftfont.c4
1 files changed, 2 insertions, 2 deletions
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)
1067 ASET (font_object, FONT_TYPE_INDEX, Qfreetype); 1067 ASET (font_object, FONT_TYPE_INDEX, Qfreetype);
1068 len = font_unparse_xlfd (entity, size, name, 256); 1068 len = font_unparse_xlfd (entity, size, name, 256);
1069 if (len > 0) 1069 if (len > 0)
1070 ASET (font_object, FONT_NAME_INDEX, make_unibyte_string (name, len)); 1070 ASET (font_object, FONT_NAME_INDEX, make_string (name, len));
1071 len = font_unparse_fcname (entity, size, name, 256); 1071 len = font_unparse_fcname (entity, size, name, 256);
1072 if (len > 0) 1072 if (len > 0)
1073 ASET (font_object, FONT_FULLNAME_INDEX, make_unibyte_string (name, len)); 1073 ASET (font_object, FONT_FULLNAME_INDEX, make_string (name, len));
1074 else 1074 else
1075 ASET (font_object, FONT_FULLNAME_INDEX, 1075 ASET (font_object, FONT_FULLNAME_INDEX,
1076 AREF (font_object, FONT_NAME_INDEX)); 1076 AREF (font_object, FONT_NAME_INDEX));