WoWWiki

This wiki contains inaccurate and out-of-date information. Please head over to https://wowpedia.fandom.com for more accurate and up-to-date game information.

READ MORE

WoWWiki
Advertisement

Widget API ← FontString < GetStringWidth

Returns how wide the string would be, in pixels, without wrapping:

width = MyFontString:GetStringWidth();

Note[]

Get/SetWidth() and Get/SetHeight() operate very differently on FontString objects than they do in other objects.

Among other things, if no width is explicitly set, GetWidth() will return the exact same result as GetStringWidth().

See the FontString object information for details.

Advertisement