WoW:API Button SetFont: Difference between revisions
Jump to navigation
Jump to search
(Adding categories) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{widgetmethod}} | |||
To set the font for this object please see, [[API_FontInstance_SetFont]]. | To set the font for this object please see, [[API_FontInstance_SetFont]]. | ||
Line 4: | Line 5: | ||
local MyButton = CreateFrame('Button', 'ButtonGlobalName' or nil, ParentFrame or nil, ButtonTemplate or nil) | local MyButton = CreateFrame('Button', 'ButtonGlobalName' or nil, ParentFrame or nil, ButtonTemplate or nil) | ||
MyButton:SetFont(FontPath or nil, FontSize or nil, FontExtra or nil) | MyButton:SetFont(FontPath or nil, FontSize or nil, FontExtra or nil) | ||
[[Category:Widget methods]] | [[Category:Widget methods]] |
Revision as of 00:47, 21 May 2020
← 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)