I want to install and use a non-standard albeit common font (“Action Man”) to my Addon. From what I’ve read there’s more to this than just copying the font into my AddOn’s Font directory. I’ve seen examples where one registers fonts with ACE (e.g., LibSharedMedia) but I would like not to use ACE, if at all possible.
Any pointers to docs or websites or example addons would be very much appreciated.
Place the font under your addon (same folder, sub-folder, doesn’t matter).
In your addon, to set a FontString font use:
fontstringx:SetFont("Interface\\Addons\\MyAddon\\xFont.ttf", 12)
Where MyAddon is your addons folder.
You can add any subFolderName\\ before the font file name if the font resides in a sub-folder somewhere under your addon folder.
You can, but don’t need to use LibSharedMedia. That’s mainly if you want to use media registered by other addons or want to register your media for use by other addons.