RSS

Понедельник, 04.11.2024, 21:05
Главная » WoW API » API Виджеты » Экземпляр шрифта »

MessageFrame:SetFontObject(object) or MessageFrame:SetFontObject("name")

[ править ]
Sets the `Font` object from which the font instance's properties are inherited.
[клоны]
Sets the Font object from which the font instance's properties are inherited. This method allows for easy standardization and reuse of font styles. For example, a button's normal font can be set to appear in the same style as many default UI elements by setting its font to "GameFontNormal" -- if Blizzard changes the main UI font in a future patch, or if the user installs another addon which changes the main UI font, the button's font will automatically change to match.


Signature:
Code
FontInstance:SetFontObject(object) or FontInstance:SetFontObject("name")

Arguments:
  • object - Reference to a Font object (font)
  • name - Global name of a Font object (string)

Также смотрите: Экземпляр шрифта
Ссылки: http://wowprogramming.com/docs/widgets/FontInstance/SetFontObject