文字字体修改完善

dev_chengFeng
jiaoyangna 2021-03-01 17:22:58 +08:00
parent 6506a48bad
commit 3b917f4c87
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ local function createPanel(uiConfig, parent)
for i = 0, textArr.Length-1 do
local textStr=textArr[i].text
textArr[i].text=GetLanguageStrById(textStr)
if GetCurLanguage() == 2 then
if GetCurLanguage() == 2 and (string.find(textArr[i].font.name,"kaiu",1) or string.find(textArr[i].font.name,"FZJinLS",1)) then
textArr[i].font = Util.LoadFont()
end
end

View File

@ -596,7 +596,7 @@ function UIManager.CreatePanel(uiConfig, parent)
for i = 0, textArr.Length-1 do
local textStr=textArr[i].text
textArr[i].text=GetLanguageStrById(textStr)
if GetCurLanguage() == 2 then
if GetCurLanguage() == 2 and (string.find(textArr[i].font.name,"kaiu",1) or string.find(textArr[i].font.name,"FZJinLS",1)) then
textArr[i].font = Util.LoadFont()
end
end