Page 1 of 1
On-screen size of text
Posted: Mon Aug 26, 2024 4:54 pm
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.
Re: On-screen size of text
Posted: Mon Aug 26, 2024 7:42 pm
by Caronte3D
Try to use TextHeight() and/or TextHeight() to make a procedure that gives you a value you can use.
Re: On-screen size of text
Posted: Mon Aug 26, 2024 9:15 pm
by k3pto
Hi Caronte3D,
Thank you for the suggestion; however, those functions only work with a 2D drawing.
Re: On-screen size of text
Posted: Mon Aug 26, 2024 9:33 pm
by Caronte3D
Yes but you can use it (hidden) only to get the number

Re: On-screen size of text
Posted: Mon Aug 26, 2024 9:37 pm
by Caronte3D