mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
don't include international font names in C client font list
e.g. Courier New Tur)
This commit is contained in:
parent
ed48f7a0c3
commit
97eb4fd27d
@ -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]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user