xiyou_sanguo
parent
5557abc078
commit
5cfeea95cb
|
|
@ -1123,7 +1123,7 @@ namespace GameLogic
|
|||
if (go != null)
|
||||
return go;
|
||||
}
|
||||
Font BuildInFont = Resources.GetBuiltinResource<Font>("Arial.ttf");
|
||||
Font BuildInFont = Resources.GetBuiltinResource<Font>("Aksaramatee Bold.ttf");
|
||||
return BuildInFont;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6e17b5dab4a2340dd9e892a43f596263
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName: lz4_fonts_aksaramatee
|
||||
assetBundleVariant: unity3d
|
||||
Binary file not shown.
|
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f675723da4d804d9aa8432310b976e20
|
||||
TrueTypeFontImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 4
|
||||
fontSize: 16
|
||||
forceTextureCase: -2
|
||||
characterSpacing: 0
|
||||
characterPadding: 1
|
||||
includeFontData: 1
|
||||
fontName: Aksaramatee
|
||||
fontNames:
|
||||
- Aksaramatee
|
||||
fallbackFontReferences: []
|
||||
customCharacters:
|
||||
fontRenderingMode: 0
|
||||
ascentCalculationMode: 1
|
||||
useLegacyBoundsCalculation: 0
|
||||
shouldRoundAdvanceValue: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -684,8 +684,8 @@ function UIManager.DoLanguageCheck(spLoader, gameObject)
|
|||
for i = 0, textArr.Length - 1 do
|
||||
local textStr = textArr[i].text
|
||||
textArr[i].text = GetLanguageStrById(textStr)
|
||||
if GetCurLanguage() == 2 and textArr[i].font and (string.find(textArr[i].font.name, "kaiu", 1) or string.find(textArr[i].font.name, "FZJinLS", 1)) then
|
||||
textArr[i].font = Util.LoadFont()
|
||||
if GetCurLanguage() == 2 and textArr[i].font and (string.find(textArr[i].font.name, "Sayeez", 1) or string.find(textArr[i].font.name, "FZJinLS", 1)) then
|
||||
textArr[i].font = Util.LoadFont("Aksaramatee Bold")
|
||||
end
|
||||
end
|
||||
local imageArr = gameObject:GetComponentsInChildren(typeof(UnityEngine.UI.Image), true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue