From e6af9ea6bff161a366c36e8d3ac17d63778dca55 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 6 Feb 2023 10:51:58 +0100 Subject: [PATCH] core: enable region fonts for unit_names --- pfUI.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pfUI.lua b/pfUI.lua index 59d9bb31..ffe127bb 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -124,16 +124,19 @@ function pfUI:UpdateFonts() default = "Fonts\\FZXHLJW.TTF" combat = "Fonts\\FZXHLJW.TTF" unit = "Fonts\\FZXHLJW.TTF" + unit_name = "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" + unit_name = "Fonts\\ZYHei.ttf" elseif pfUI_config.global.force_region == "1" and GetLocale() == "koKR" then -- force locale compatible fonts default = "Fonts\\2002.TTF" combat = "Fonts\\2002.TTF" unit = "Fonts\\2002.TTF" + unit_name = "Fonts\\2002.TTF" else -- use default entries default = pfUI.media[pfUI_config.global.font_default]