wowpedia
Main Menu


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

Height= MyFontString:GetStringHeight();

Note

MyFrameText:SetHeight(1000); -- Arbitrary number, this is about 83 lines of text, assuming ~12 pixels each
MyFrameText:SetText("This\nIs\Four\nLines");
MyFrameText:SetHeight(MyFrameText:GetStringHeight());
print(MyFrameText:GetHeight(); -- We will see that the new frame height is about 48.

Patch history

See also

References