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
@ -639,6 +639,9 @@ int CALLBACK Font_GetNamesCallback(CONST LOGFONT* desc, CONST TEXTMETRIC* metric
|
|||||||
UInt32 i;
|
UInt32 i;
|
||||||
UChar nameBuffer[String_BufferSize(LF_FACESIZE)];
|
UChar nameBuffer[String_BufferSize(LF_FACESIZE)];
|
||||||
String name = String_InitAndClearArray(nameBuffer);
|
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)) {
|
if ((fontType & RASTER_FONTTYPE) || (fontType & TRUETYPE_FONTTYPE)) {
|
||||||
for (i = 0; i < LF_FACESIZE && desc->lfFaceName[i]; i++) {
|
for (i = 0; i < LF_FACESIZE && desc->lfFaceName[i]; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user