fix: use unicode font for all

This commit is contained in:
GenZmeY 2020-09-01 13:16:01 +03:00
parent 22478871a6
commit 011299001f

View File

@ -16,6 +16,7 @@ function InitStyle()
for( i=0; i<ArrayCount(LoadedTex); ++i ) for( i=0; i<ArrayCount(LoadedTex); ++i )
if( LoadedTex[i]==None ) if( LoadedTex[i]==None )
LoadedTex[i] = Texture2D'EngineMaterials.DefaultWhiteGrid'; LoadedTex[i] = Texture2D'EngineMaterials.DefaultWhiteGrid';
// TODO: SmallFont/TinyFont not support unicode
DrawFonts[0] = Font(DynamicLoadObject("UI_Canvas_Fonts.Font_General",class'Font')); DrawFonts[0] = Font(DynamicLoadObject("UI_Canvas_Fonts.Font_General",class'Font'));
DrawFonts[1] = Font(DynamicLoadObject("EngineFonts.SmallFont",class'Font')); DrawFonts[1] = Font(DynamicLoadObject("EngineFonts.SmallFont",class'Font'));
DrawFonts[2] = Font(DynamicLoadObject("EngineFonts.TinyFont",class'Font')); DrawFonts[2] = Font(DynamicLoadObject("EngineFonts.TinyFont",class'Font'));
@ -496,11 +497,11 @@ function Font PickFont( byte i, out float Scaler )
switch( i ) switch( i )
{ {
case 0: case 0:
Scaler = 1; Scaler = 0.3;
return DrawFonts[2]; return DrawFonts[0]; // use unicode font only
case 1: case 1:
Scaler = 1; Scaler = 0.35;
return DrawFonts[1]; return DrawFonts[0]; // use unicode font only
case 2: case 2:
Scaler = 0.4; Scaler = 0.4;
return DrawFonts[0]; return DrawFonts[0];