diff options
| author | Kenichi Handa | 2008-12-19 05:39:44 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-12-19 05:39:44 +0000 |
| commit | 3299c55202d903b9b3b44bd92554d1875ddb0071 (patch) | |
| tree | f15c78c4e894e64a6f765c343ee011b2a08b2be8 /src | |
| parent | 2781b4e0a3622141de935d2db10b6942ac1e950a (diff) | |
| download | emacs-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.c | 4 |
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)); |