RSS

Четверг, 28.03.2024, 20:14
Главная » WoW API » API Виджеты » Экземпляр шрифта »

isValid = MessageFrame:SetFont("filename", fontHeight, "flags")

[ править ]
Sets the font instance's basic font properties.
[клоны]
Sets the font instance's basic font properties. Font files included with the default WoW client:

  • Fonts\FRIZQT__.TTF - Friz Quadrata, used by default for player names and most UI text
  • Fonts\ARIALN.TTF - Arial Narrow, used by default for chat windows, action button numbers, etc.
  • Fonts\skurri.ttf - Skurri, used by default for incoming damage/parry/miss/etc indicators on the Player and Pet frames
  • Fonts\MORPHEUS.ttf - Morpheus, used by default for quest title headers, mail, and readable in-game objects.

Font files can also be included in addons.


Signature:
Code
isValid = FontInstance:SetFont("filename", fontHeight, "flags")

Arguments:
  • filename - Path to a font file (string)
  • fontHeight - Height (point size) of the font to be displayed (in pixels) (number)
  • flags - Additional properties for the font specified by one or more (separated by commas) of the following tokens: (string)
      MONOCHROME - Font is rendered without antialiasing
    • OUTLINE - Font is displayed with a black outline
    • THICKOUTLINE - Font is displayed with a thick black outline

Returns:
  • isValid - 1 if filename refers to a valid font file; otherwise nil (1nil)

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