Originally Posted by aallkkaa
SetFont is a global WoW function defined by Blizzard.
Yet, you define a new, local, SetFont function (which, if it were allowed by the game's API, would indeed replace the orginal SetFont function).
And then, within this new, local function, you call the SetFont function! Which one are you trying to call? The original global?... Or recursively call your own new local one?...
In the former case, had your function successfully replaced the original one, it would have failed to call the original because that would no longer exist (be callable by that name). In the later case, then your function doesn't actually do anything except define a local variable and call itself again.
|
I also don't have an answer, but I think you're confused with the
FontInstance.SetFont method, rather than it being a global function