WoW:API Button SetFont

From AddOn Studio
Revision as of 01:27, 1 February 2009 by WoWWiki>Kmcguire (M)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To set the font for this object please see, API_FontInstance_SetFont.

Instead of using FontInstance:SetFont use MyButtonObject:SetFont. Eg:

 local MyButton = CreateFrame('Button', 'ButtonGlobalName' or nil, ParentFrame or nil, ButtonTemplate or nil)
 MyButton:SetFont(FontPath or nil, FontSize or nil, FontExtra or nil)

Please, read API_FontInstance_SetFont for more exact details.