Get/Set font error

Can anyone explain – or point me to where this is documented – why the below line causes an error?

OpenMailBodyText:SetFontObject(GameFontNormal)

It obviously has a font (mailframe.XML: ) but the function call to Get or Set the FontObject acts like there is a syntax error on the function call.

SetFontObject(fontObj) works as expected everywhere else so I’m assuming this is a change in the in context handling as this operation has worked flawlessly for quite a number of years.

Tech Support has nothing to do with the Lua API and its associated XML elements. You probably want to ask in the UI and Macro forum, where players with experience with the scripting environment would be able to comment.

You won’t get any feedback from the developers, since they don’t explain anything and the API is subject to change without notice or consultation.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.