Not sure if this is the place to ask this but anyway..
Been using this addon for years to change all of the fonts but now with 10.0 it stopped working and I have 0 lua experience so kinda hoping someone knows how to fix it.
Lua Code:
local function SetFont(obj, font, size, style, sr, sg, sb, sa, sox, soy, r, g, b)
if not obj then return end
obj:SetFont(font, size, style)
if sr and sg and sb then
obj:SetShadowColor(sr, sg, sb, sa)
end
if sox and soy then
obj:SetShadowOffset(sox, soy)
end
if r and g and b then
obj:SetTextColor(r, g, b)
elseif r then
obj:SetAlpha(r)
end
end
local f = CreateFrame("Frame")
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent", function()
local NORMAL = [[Fonts\ARIALN.ttf]]
local BOLD = [[Fonts\ARIALN.ttf]]
local BOLDITALIC = [[Fonts\ARIALN.ttf]]
local ITALIC = [[Fonts\ARIALN.ttf]]
local NUMBER = [[Fonts\ARIALN.ttf]]
UIDROPDOWNMENU_DEFAULT_TEXT_HEIGHT = 12
CHAT_FONT_HEIGHTS = {7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}
UNIT_NAME_FONT = NORMAL
DAMAGE_TEXT_FONT = BOLD
STANDARD_TEXT_FONT = NORMAL
-- Base fonts
SetFont(AchievementFont_Small, NORMAL, 11, "OUTLINE")
SetFont(AchievementPointsFont, NORMAL, 11, "OUTLINE")
SetFont(AchievementPointsFontSmall, NORMAL, 11, "OUTLINE")
SetFont(AchievementDateFont, NORMAL, 11, "OUTLINE")
SetFont(AchievementCriteriaFont, NORMAL, 11, "OUTLINE")
SetFont(AchievementDescriptionFont, NORMAL, 11, "")
SetFont(FriendsFont_Large, NORMAL, 11, nil, nil, nil, nil, 0, 0, 0, 1, -1, "THINOUTLINE")
SetFont(FriendsFont_Normal, NORMAL, 11, nil, nil, nil, nil, 0, 0, 0, 1, -1, "THINOUTLINE")
SetFont(FriendsFont_Small, NORMAL, 11, nil, nil, nil, nil, 0, 0, 0, 1, -1, "THINOUTLINE")
SetFont(FriendsFont_UserText, NORMAL, 11, nil, nil, nil, nil, 0, 0, 0, 1, -1, "THINOUTLINE")
SetFont(GameTooltipHeader, NORMAL, 11, "THINOUTLINE")
SetFont(GameFont_Gigantic, NORMAL, 32, nil, nil, nil, nil, 0, 0, 0, 1, -1, "THINOUTLINE")
SetFont(InvoiceFont_Med, NORMAL, 11, nil, 0.15, 0.09, 0.04, "THINOUTLINE")
SetFont(InvoiceFont_Small, NORMAL, 11, nil, 0.15, 0.09, 0.04, "THINOUTLINE")
SetFont(MailFont_Large, NORMAL, 11, nil, 0.15, 0.09, 0.04, 0.54, 0.4, 0.1, 1, -1, "THINOUTLINE")
SetFont(NumberFont_OutlineThick_Mono_Small, NORMAL, 12, "OUTLINE")
SetFont(NumberFont_Outline_Huge, NORMAL, 30, "THINOUTLINE", 30)
SetFont(NumberFont_Outline_Large, NORMAL, 13, "THINOUTLINE")
SetFont(NumberFont_Outline_Med, NORMAL, 11, "THINOUTLINE")
SetFont(NumberFont_Shadow_Med, NORMAL, 11, "THINOUTLINE")
SetFont(NumberFont_Shadow_Small, NORMAL, 11, "THINOUTLINE")
SetFont(QuestFont_Shadow_Small, NORMAL, 11, "THINOUTLINE")
SetFont(QuestFont_Shadow_Huge, NORMAL, 15, nil, nil, nil, nil, 0.54, 0.4, 0.1)
SetFont(QuestFontHighlight, NORMAL, 14, "THINOUTLINE")
--SetFont(QuestFontNormalSmall, NORMAL, 11, "THINOUTLINE")
--SetFont(QuestLogTitleText, NORMAL, 13, "THINOUTLINE")
SetFont(QuestTitleFont, NORMAL, 13)
SetFont(QuestFont, NORMAL, 12)
SetFont(QuestFont_Large, NORMAL, 14, "THINOUTLINE")
SetFont(QuestTitleFontBlackShadow, NORMAL, 16, "THINOUTLINE")
SetFont(QuestFont_Super_Huge, NORMAL, 16, "THINOUTLINE")
SetFont(ReputationDetailFont, NORMAL, 11, nil, nil, nil, nil, 0, 0, 0, 1, -1, "THINOUTLINE")
SetFont(SpellFont_Small, NORMAL, 12)
SetFont(SystemFont_InverseShadow_Small, NORMAL, 11, "THINOUTLINE")
SetFont(SystemFont_Large, NORMAL, 12, "")
SetFont(SystemFont_Med1, NORMAL, 12, "")
SetFont(SystemFont_Med2, NORMAL, 13, nil, 0.15, 0.09, 0.04, "THICKOUTLINE")
SetFont(SystemFont_Med3, NORMAL, 13, "THICKOUTLINE")
SetFont(SystemFont_OutlineThick_Huge2, NORMAL, 22, "THICKOUTLINE")
SetFont(SystemFont_OutlineThick_Huge4, NORMAL, 27, "THICKOUTLINE")
SetFont(SystemFont_OutlineThick_WTF, NORMAL, 31, "THICKOUTLINE", nil, nil, nil, 0, 0, 0, 1, -1)
SetFont(SystemFont_Outline_Small, NORMAL, 11, "THINOUTLINE")
SetFont(SystemFont_Shadow_Huge1, NORMAL, 20, "THINOUTLINE")
SetFont(SystemFont_Shadow_Huge3, NORMAL, 25, "THINOUTLINE")
SetFont(SystemFont_Shadow_Large, NORMAL, 17, "THINOUTLINE")
SetFont(SystemFont_Shadow_Med1, NORMAL, 11, "THINOUTLINE")
SetFont(SystemFont_Shadow_Med2, NORMAL, 11, "THINOUTLINE")
SetFont(SystemFont_Shadow_Med3, NORMAL, 11, "THINOUTLINE")
--SetFont(SystemFont_Shadow_Outline_Huge2, NORMAL, 22, "THINOUTLINE")
SetFont(SystemFont_Shadow_Small, NORMAL, 11, "THINOUTLINE")
SetFont(SystemFont_Small, NORMAL, 12)
SetFont(SystemFont_Tiny, NORMAL, 11, "THINOUTLINE")
SetFont(Tooltip_Med, NORMAL, 11, "THINOUTLINE")
SetFont(Tooltip_Small, NORMAL, 11, "THINOUTLINE")
SetFont(ChatBubbleFont, NORMAL, 12, "THINOUTLINE")
-- Derived fonts
SetFont(BossEmoteNormalHuge, NORMAL, 27, "THICKOUTLINE")
--SetFont(CombatTextFont, BOLD, 26, "THINOUTLINE")
SetFont(ErrorFont, NORMAL, 16, nil, 60, "THINOUTLINE")
SetFont(QuestFontNormalSmall, NORMAL, 11, nil, nil, nil, nil, 0.54, 0.4, 0.1)
SetFont(WorldMapTextFont, NORMAL, 31, "THICKOUTLINE", 40, nil, nil, 0, 0, 0, 1, -1, "THINOUTLINE")
end)
Thanks.