diff --git a/modules/gui.lua b/modules/gui.lua index 95cd149f..407ddbda 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -581,6 +581,29 @@ pfUI:RegisterModule("gui", function () "Interface\\AddOns\\pfUI\\fonts\\PT-Sans-Narrow-Regular.ttf:PT-Sans-Narrow-Regular" } + -- add locale dependent client fonts to the list + if GetLocale() == "enUS" or GetLocale() == "frFR" or GetLocale() == "deDE" or GetLocale() == "ruRU" then + table.insert(dropdown_selection_fonts, "Fonts\\ARIALN.TTF:ARIALN") + table.insert(dropdown_selection_fonts, "Fonts\\FRIZQT__.TTF:FRIZQT") + table.insert(dropdown_selection_fonts, "Fonts\\MORPHEUS.TTF:MORPHEUS") + table.insert(dropdown_selection_fonts, "Fonts\\SKURRI.TTF:SKURRI") + elseif GetLocale() == "koKR" then + table.insert(dropdown_selection_fonts, "Fonts\\ARIALN.TTF:ARIALN") + table.insert(dropdown_selection_fonts, "Fonts\\FRIZQT__.TTF:FRIZQT") + table.insert(dropdown_selection_fonts, "Fonts\\FZBWJW.TTF:FZBWJW") + table.insert(dropdown_selection_fonts, "Fonts\\FZJZJW.TTF:FZJZJW") + table.insert(dropdown_selection_fonts, "Fonts\\FZLBJW.TTF:FZLBJW") + table.insert(dropdown_selection_fonts, "Fonts\\FZXHJW.TTF:FZXHJW") + table.insert(dropdown_selection_fonts, "Fonts\\FZXHLJW.TTF:FZXHLJW") + elseif GetLocale() == "zhCN" then + table.insert(dropdown_selection_fonts, "Fonts\\2002.TTF:2002") + table.insert(dropdown_selection_fonts, "Fonts\\2002B.TTF:2002B") + table.insert(dropdown_selection_fonts, "Fonts\\ARIALN.TTF:ARIALN") + table.insert(dropdown_selection_fonts, "Fonts\\FRIZQT__.TTF:FRIZQT") + table.insert(dropdown_selection_fonts, "Fonts\\K_Damage.TTF:K_Damage") + table.insert(dropdown_selection_fonts, "Fonts\\K_Pagetext.TTF:K_Pagetext") + end + local dropdown_unitframes_text = { "none:" .. T["Disable"], "unit:" .. T["Unit String"],