Summary

The FontString control can be used to display text inside a Frame. FontStrings always reside on one of the frame's layers and render according to the level of the layer. The text of a FontString can also contain escape sequences that alter the color of the text, enable links to in-game artifacts or display images inline.


Properties

Font

The path to the font to be used. World of Warcraft comes with four fonts:





Custom true-type fonts that come with the addon can also be used.


Color

The color of the displayed text.


FontHeight

The height of the displayed text.


Shadow

A FontString can optionally have as shadow. The color and the relative position can be customized using the Color and Offset attributes respectively.


Text

The text to be displayed.


Spacing

Sets the spacing, in pixels, between lines if the FontString has multiple lines.


Outline

Specifies the outline type of the FontString. The possible values are NONE, NORMAL and THICK.


Monochrome

A value indicating whether the font should be monochromatic (grayscale) or not.


Nonspacewrap

A value indicating whether long strings should be wrapped in non-whitespace positions.


JustifyV

Specifies the vertical alignment of the text using one of the following values: TOP, MIDDLE, BOTTOM.


JustifyH

Specifies the horizontal alignment of the text using one of the following values: LEFT, CENTER, RIGHT.


Built-in templates





Example