I've been trying to make a little addon which changes the font of the Zone text & sub zone text. The code I made doesnt work somehow and I can't find why.
Note: Im not very experienced with LUA so dont laugh at the code :P
Code:
local fontName = "Interface\\AddOns\\ZoneTextFont\\font.ttf"
local function FS_SetFont()
ZoneTextFont:SetFont(fontName)
ZoneTextFont:SetShadowColor(0, 0, 0)
ZoneTextFont:SetShadowOffset(1, -1)
SubZoneTextFont:SetFont(fontName)
end
FS_SetFont()