This solved for me, apparently you can't pass a LoadOnDemand addon as a LoadsWith parameter (at least that is my theory):
MacroFrameFontImprover.toc
Code:
## Interface: 60000
## Title: Macro Frame Font Improver
## Version: 1.00
## Author: Choonster
## Notes: Improves the font in the macro frame's editbox.
core.lua
core.lua
Code:
-- The font file to use, relative to the root WoW directory
local FontPath = [[Interface\AddOns\MacroFrameFontImprover\CourierNew.ttf]]
-- The font size to use
local FontSize = 12
-- The font flags to use. Any comma-delimited combination of "OUTLINE", "THICKOUTLINE" and "MONOCHROME". Leave empty for no flags.
local FontFlags = ""
-------------------
-- END OF CONFIG --
-------------------
local f = CreateFrame("Frame")
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent",function(self,event,...)
if event=="ADDON_LOADED" and ...=="Blizzard_MacroUI" then
MacroFrameText:SetFont(FontPath,FontSize,FontFlags)
f:UnregisterEvent("ADDON_LOADED")
end
end)