diff --git a/src/frames.lua b/src/frames.lua index e230af3..4a8e62f 100644 --- a/src/frames.lua +++ b/src/frames.lua @@ -151,7 +151,7 @@ function TranqRotate:createHunterFrame(hunter, parentFrame) -- Set Text hunter.frame.text = hunter.frame:CreateFontString(nil, "ARTWORK") - hunter.frame.text:SetFont("Fonts\\ARIALN.ttf", 12) + hunter.frame.text:SetFont(TranqRotate:getPlayerNameFont(), 12) hunter.frame.text:SetPoint("LEFT",5,0) hunter.frame.text:SetText(hunter.name) diff --git a/src/utils.lua b/src/utils.lua index 18158f4..65c9647 100644 --- a/src/utils.lua +++ b/src/utils.lua @@ -48,4 +48,12 @@ end -- Checks if a hunter is in a PvE raid function TranqRotate:isInPveRaid() return IsInRaid() and not TranqRotate:isPlayerInBattleground() +end + +function TranqRotate:getPlayerNameFont() + if (GetLocale() == "zhCN" or GetLocale() == "zhTW") then + return "Fonts\\ARHei.ttf" + end + + return "Fonts\\ARIALN.ttf" end \ No newline at end of file