font fixes:
- replace font to UI_Canvas_Fonts.Font_Main (which supports chinese); - scaling configured (not final).
This commit is contained in:
parent
90afcb8b40
commit
570ed51111
@ -17,7 +17,7 @@ function InitStyle()
|
|||||||
if (LoadedTex[i]==None)
|
if (LoadedTex[i]==None)
|
||||||
LoadedTex[i] = Texture2D'EngineMaterials.DefaultWhiteGrid';
|
LoadedTex[i] = Texture2D'EngineMaterials.DefaultWhiteGrid';
|
||||||
// TODO: SmallFont/TinyFont not support unicode
|
// 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_Main",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'));
|
||||||
for (i=0; i<ArrayCount(DrawFonts); ++i)
|
for (i=0; i<ArrayCount(DrawFonts); ++i)
|
||||||
@ -508,22 +508,22 @@ function Font PickFont(byte i, out float Scaler)
|
|||||||
switch (i)
|
switch (i)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
Scaler = 0.3;
|
|
||||||
return DrawFonts[0]; // use unicode font only
|
|
||||||
case 1:
|
|
||||||
Scaler = 0.35;
|
|
||||||
return DrawFonts[0]; // use unicode font only
|
|
||||||
case 2:
|
|
||||||
Scaler = 0.4;
|
|
||||||
return DrawFonts[0];
|
|
||||||
case 3:
|
|
||||||
Scaler = 0.55;
|
Scaler = 0.55;
|
||||||
return DrawFonts[0];
|
return DrawFonts[0];
|
||||||
|
case 1:
|
||||||
|
Scaler = 0.65;
|
||||||
|
return DrawFonts[0];
|
||||||
|
case 2:
|
||||||
|
Scaler = 0.70;
|
||||||
|
return DrawFonts[0];
|
||||||
|
case 3:
|
||||||
|
Scaler = 0.75;
|
||||||
|
return DrawFonts[0];
|
||||||
case 4:
|
case 4:
|
||||||
Scaler = 0.6;
|
Scaler = 0.80;
|
||||||
return DrawFonts[0];
|
return DrawFonts[0];
|
||||||
case 5:
|
case 5:
|
||||||
Scaler = 0.75;
|
Scaler = 0.90;
|
||||||
return DrawFonts[0];
|
return DrawFonts[0];
|
||||||
default:
|
default:
|
||||||
Scaler = 1.0;
|
Scaler = 1.0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user