ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 text layer size
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndNit

Brazil
81 Posts

Posted - Sep 02 2024 :  12:38:33  Show Profile  Reply
Hello,

How can I resize my text layer to the exact size of the text, vertically.

For example: the text has 10 lines and a height of 600, and the text layer has a height of 900. I need to make the text layer the same size as the text.

Thank you

xequte

38616 Posts

Posted - Sep 02 2024 :  17:41:48  Show Profile  Reply
Hi

When you use SizeToText it will attempt to size to both width and height, but it cannot work perfectly with wrapped text.

https://www.imageen.com/help/TIETextLayer.SizeToText.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

38616 Posts

Posted - Sep 02 2024 :  23:57:51  Show Profile  Reply
Hi

Please email me for the latest beta. It makes it no wider than the view, and SizeToText() includes a LenghtenOnly parameter.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

AndNit

Brazil
81 Posts

Posted - Sep 03 2024 :  09:37:46  Show Profile  Reply
Thanks Nigel,

To help me understand better, will this update allow me to create a text layer with the WIDTH defined and when inserting text into this layer, it will only increase the HEIGHT, always to the size of the text/lines?

Thanks, I'll forward the email.
Go to Top of Page

xequte

38616 Posts

Posted - Sep 03 2024 :  15:12:49  Show Profile  Reply
At this time, with the update:

- Text layers never become wider than the view
- SizeToText() includes a LenghtenOnly parameter

(WordWrap must be true).

But we could include a FixedWidth property or something similar that ensures it never widens.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

38616 Posts

Posted - Sep 04 2024 :  16:23:19  Show Profile  Reply
Hi

We'll be issuing a beta next week with a MaxWidth property. But I'd caution against using a beta in a release product.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

AndNit

Brazil
81 Posts

Posted - Sep 05 2024 :  08:03:18  Show Profile  Reply
Thanks Nigel, Before putting it into production, we will still run tests to make sure that the routines are correct.

Do you have a date, more or less, of when you will make this update available? Just to organize myself here.

Thanks
Go to Top of Page

xequte

38616 Posts

Posted - Sep 05 2024 :  16:23:09  Show Profile  Reply
Hi

Email me Wednesday morning, if you have not yet received it.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: