Widget API: Button:SetFont

Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API Button SetFont to API Button SetFont without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)