From 97eb4fd27d90ef8711663b606936fd4e8661d2cc Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 13 Aug 2018 14:32:15 +1000 Subject: [PATCH] don't include international font names in C client font list e.g. Courier New Tur) --- src/Client/Platform.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Client/Platform.c b/src/Client/Platform.c index f8c42e906..c64ceacdb 100644 --- a/src/Client/Platform.c +++ b/src/Client/Platform.c @@ -639,6 +639,9 @@ int CALLBACK Font_GetNamesCallback(CONST LOGFONT* desc, CONST TEXTMETRIC* metric UInt32 i; 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++) {