On-screen size of text

Everything else that doesn't fall into one of the other PB categories.
k3pto
User
User
Posts: 87
Joined: Sat Jan 17, 2015 5:24 pm

On-screen size of text

Post by k3pto »

Is there a way to determine how much room my text will take up in text and editor gadgets? I would like to dynamically change the font size based on this information.
User avatar
Caronte3D
Addict
Addict
Posts: 1369
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: On-screen size of text

Post by Caronte3D »

Try to use TextHeight() and/or TextHeight() to make a procedure that gives you a value you can use.
k3pto
User
User
Posts: 87
Joined: Sat Jan 17, 2015 5:24 pm

Re: On-screen size of text

Post by k3pto »

Hi Caronte3D,

Thank you for the suggestion; however, those functions only work with a 2D drawing.
User avatar
Caronte3D
Addict
Addict
Posts: 1369
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: On-screen size of text

Post by Caronte3D »

Yes but you can use it (hidden) only to get the number :D
User avatar
Caronte3D
Addict
Addict
Posts: 1369
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: On-screen size of text

Post by Caronte3D »

Post Reply