Reference › Function reference › UI

UI.condition_display.defaultFont

dependency

Call as

UI.condition_display.defaultFont()

Record the dependency UI.condition_display.defaultFont, then call it by that name. A namespaced call does not pass self: use a colon call or pass the object yourself.

What it does

Returns the default font for condition labels and buttons: the GameFontHighlightSmall font object, or its name when the object is not defined.

Arguments

None.

Returns

1table | stringGameFontHighlightSmall, or the string "GameFontHighlightSmall".

Editions

Built In helpers are registered on every edition. What differs is the game API they read; where one is missing the helper falls back or returns nil with a reason.

  • Not available on that edition (the reason is in the tooltip)
  • Only while Blizzard's deprecation fallbacks are on
Game APIClassic EraTBC AnniversaryClassic progressionForeverRetail
GameFontHighlightSmallClassic EraTBC AnniversaryClassic progressionForeverRetail

How the addon calls it

Source

UI/condition_display.lua, line 14. Read only in game; Duplicate makes an editable copy.

UI.condition_display.defaultFont()
 return GameFontHighlightSmall or 'GameFontHighlightSmall'

Back to Function reference