From e8e5b72d9694d6e393ea2def6db61fdb8e18cdb0 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 24 Jun 2017 20:26:57 +0200 Subject: [PATCH] gui: include original client gamefonts --- modules/gui.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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"],