My question is, is there any way i can add code to this to be able to change the size aswell?
- Code: Select all
xDamageFont = CreateFrame("Frame", "xDamageFont");
local damagefont_FONT_NUMBER = "Interface\\AddOns\\xDamageFont\\Fonts\\pixfont.ttf";
function xDamageFont:ApplySystemFonts()
DAMAGE_TEXT_FONT = damagefont_FONT_NUMBER;
end
xDamageFont:SetScript("OnEvent",
function()
if (event == "ADDON_LOADED") then
xDamageFont:ApplySystemFonts()
end
end);
xDamageFont:RegisterEvent("ADDON_LOADED");
xDamageFont:ApplySystemFonts()