don't include international font names in C client font list

e.g. Courier New Tur)
This commit is contained in:
UnknownShadow200 2018-08-13 14:32:15 +10:00
parent ed48f7a0c3
commit 97eb4fd27d

View File

@ -640,6 +640,9 @@ int CALLBACK Font_GetNamesCallback(CONST LOGFONT* desc, CONST TEXTMETRIC* metric
UChar nameBuffer[String_BufferSize(LF_FACESIZE)];
String name = String_InitAndClearArray(nameBuffer);
/* don't want international variations of font names too */
if (desc->lfFaceName[0] == '@' || desc->lfCharSet != ANSI_CHARSET) return 1;
if ((fontType & RASTER_FONTTYPE) || (fontType & TRUETYPE_FONTTYPE)) {
for (i = 0; i < LF_FACESIZE && desc->lfFaceName[i]; i++) {
String_Append(&name, Convert_UnicodeToCP437(desc->lfFaceName[i]));