I need to display text in national language. How can I set my own font file with diacritics of my language?
Lua Code:
local LibStub = LibStub;
local AceConfigRegistry = LibStub("AceConfigRegistry-3.0");
local AceConfigDialog = LibStub("AceConfigDialog-3.0");
local AceGUI = LibStub("AceGUI-3.0");
local My_Font = "Interface\\AddOns\\Test\\frizquadratatt_pl.ttf";
-------------------------------------------------------------------------------------------------------------------
local testOptionsGroup = {
type = "group",
order = 10,
name = "Test", -- name of tab #1
get = function(info)
return info;
end,
set = function(info, value)
value = info;
end,
args = {
generalMainHeaderQS = { order = 10, type = "header", name = "Test section", }, -- header of section 1
activateTestOption1 = {
type = "toggle", order = 20, name = "Zażółć gęślą jaźń", desc = "To jest testowy opis tej opcji", width = "double",
get = function(info)
return true;
end,
set = function(info, value)
wynik = value;
end,
},
},
};
-----------------------------------------
--SETTING OF OPTIONS
-----------------------------------------
local options = {
type = "group",
args = {
general = { type = "group", name = " Test header ver. 123" , childGroups = "tab",
get = function(info) return info end,
set = function(info, value)
info = value;
end,
args = {
testOptionsGrp = testOptionsGroup,
},
},
},
};
-----------------------------------------------------------------------------------------------------------------
-- general Test configuration
AceConfigRegistry:RegisterOptionsTable("Test", options.args.general);
Test_OptionFrame = AceConfigDialog:AddToBlizOptions("Test");
InterfaceOptionsFrame_OpenToCategory(Test_OptionFrame);