Wikia

WoWWiki

API FontString SetText

Talk0
101,312pages on
this wiki
Revision as of 23:04, July 25, 2009 by Egingell (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
Widget API


Synopsis Edit

 FontString:SetText(string text)

Description Edit

Sets the text to be displayed in the fontstring. The text will have the color given to it via the fontinstance definition (or a FontString:SetTextColor call). You may however use escape sequences to modify the string's appearance.

NOTE: FontString has a limit of ~4000 chars.

Examples Edit

 FontString:SetText('|cff000000This text is black,|r |cffff0000while this text will be red.|r')

will return

 This text is black, while this text will be red.

Notes

Around Wikia's network

Random Wiki