View Single Post
06-14-17, 05:35 PM   #3
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Originally Posted by aallkkaa View Post
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
  Reply With Quote