xiyou_sanguo
zhangjiannan 2025-01-21 19:05:26 +08:00
parent 5557abc078
commit 5cfeea95cb
5 changed files with 33 additions and 3 deletions

View File

@ -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;
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6e17b5dab4a2340dd9e892a43f596263
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName: lz4_fonts_aksaramatee
assetBundleVariant: unity3d

View File

@ -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:

View File

@ -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);