Jump to content
Smart Games

Calculate height and width of letter on GUI

Recommended Posts

I use RscStructuredText.

The size attribute is set by default to:

(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)

That equals font size 1.

 

Now i want to set my UI width and height exactly to the height and width of the entered text.

 

Any Ideas?

 

Thanks, 

Jacob

 

Share this post


Link to post
Share on other sites
9 hours ago, Smart Games said:

That equals font size 1. 

Not unless your playing on some weird resolution. Should come out around 0.04.

 

ctrlTextWidth

ctrlTextHeight

getTextWidth

?

  • Like 3

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×