Widget API: Button:SetFont

From AddOn Studio
Revision as of 00:47, 21 May 2020 by Bear (talk | contribs)
Jump to navigation Jump to search

Widget API ← Button < SetFont

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)