For as long as I can remember, my actionbar skinning addon has had this issue where it doesn't want to replace the font on ActionButton
N on the first client startup.
Here is what I use:
Code:
local FONT = [[Interface\AddOns\MyAddon\font.ttf]]
for index = 1, NUM_ACTIONBAR_BUTTONS do
_G['ActionButton' .. index .. 'HotKey']:SetFont(FONT, 8)
end
When I start the client and log in to a character, this will do nothing. Running :GetFont() shows the default font (ARIALN.ttf), size and flags.
This issue only occurs on ActionButton
N, it works fine on the other buttons I skin (MultiBarBottomLeftButton
N etc).
If I /reload or relog (logging out to the character screen then logging in on any character) it works fine.
I've also tried delaying this to PLAYER_LOGIN and other later events without success.
Delaying it with an OnUpdate script past login works, but I don't know how long I have to wait, and it is not a good solution.
Setting the font to any of the other built-in fonts (like FRIZQT__.ttf) works fine.
So, I'm not sure what's causing this or how to fix it.