From 6e2bcdac42dbec6fc4d34c92569caecd6428c234 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 8 Apr 2020 09:44:57 +0200 Subject: [PATCH] fonts: use special fonts for zhCN tbc --- pfUI.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pfUI.lua b/pfUI.lua index d31247fa..a19a1ac2 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -126,11 +126,16 @@ function pfUI:UpdateFonts() -- load font configuration local default, unit, combat - if pfUI_config.global.force_region == "1" and GetLocale() == "zhCN" then + if pfUI_config.global.force_region == "1" and GetLocale() == "zhCN" and pfUI.expansion == "vanilla" then -- force locale compatible fonts default = "Fonts\\FZXHLJW.TTF" combat = "Fonts\\FZXHLJW.TTF" unit = "Fonts\\FZXHLJW.TTF" + elseif pfUI_config.global.force_region == "1" and GetLocale() == "zhCN" and pfUI.expansion == "tbc" then + -- force locale compatible fonts + default = "Fonts\\ZYHei.ttf" + combat = "Fonts\\ZYKai_C.ttf" + unit = "Fonts\\ZYKai_T.ttf" elseif pfUI_config.global.force_region == "1" and GetLocale() == "koKR" then -- force locale compatible fonts default = "Fonts\\2002.TTF"