Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API Button SetFont

Last wiki revision 2021-09-03

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.

Categories

  • Widget methods

Source

https://warcraft.wiki.gg/wiki/API_Button_SetFont · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.