Hello.
I want to calculate how much of the screen my DrawText would use. Is this possible?
I need this to calculate how big my tooltip should be.
Hello.
I want to calculate how much of the screen my DrawText would use. Is this possible?
I need this to calculate how big my tooltip should be.
Thanks, I’ll take a look at it.
You can use the function GetTextSize to get the width and height of the text. However, I have found it is a little off at times.
Here’s an example:
int32 textWidth, textHeight;
GetTextSize(TheString, textWidth, textHeight, TheFont, TheScale);