Mikk38024@legacy41558003 (talk | contribs) (Unstubbified. Point at object information for GetWidth et al funkiness) |
Charibot@legacy41530750 (talk | contribs) m (catfix, Replaced: {{widgetmethod}} → {{widgetmethod}}<br>) |
||
Line 1: | Line 1: | ||
− | {{widgetmethod}} |
+ | {{widgetmethod}}<br> |
Returns how wide the string would be, in pixels, without wrapping: |
Returns how wide the string would be, in pixels, without wrapping: |
Revision as of 23:36, 14 July 2008
The API is no longer being updated here until further notice. |
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.