# HG changeset patch # User Wuzzy # Date 1540460231 -7200 # Node ID 4355b8c4099e8c02067cc6282f9705aa67d23c42 # Parent 0e2fd51c4a52cfd22ed2642fff309c59be307041 Add CJK font support for sidAmmoCount diff -r 0e2fd51c4a52 -r 4355b8c4099e hedgewars/uStore.pas --- a/hedgewars/uStore.pas Thu Oct 25 04:55:27 2018 +0300 +++ b/hedgewars/uStore.pas Thu Oct 25 11:37:11 2018 +0200 @@ -533,7 +533,7 @@ // number of weapons in ammo menu for i:= Low(CountTexz) to High(CountTexz) do begin - tmpsurf:= TTF_RenderUTF8_Blended(Fontz[fnt16].Handle, Str2PChar(Format(shortstring(trmsg[sidAmmoCount]), IntToStr(i))), cWhiteColorChannels); + tmpsurf:= TTF_RenderUTF8_Blended(Fontz[CheckCJKFont(trmsg[sidAmmoCount],fnt16)].Handle, Str2PChar(Format(shortstring(trmsg[sidAmmoCount]), IntToStr(i))), cWhiteColorChannels); tmpsurf:= doSurfaceConversion(tmpsurf); FreeAndNilTexture(CountTexz[i]); CountTexz[i]:= Surface2Tex(tmpsurf, false);