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
 Resize text to fill specific size
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - Jan 27 2021 :  00:09:44  Show Profile  Reply
Hello,

How can I get IE to set the size of text of a Text Layer as per particular dimensions?

I mean how can I tell IE to resize text size if necessary to fill a given space of say 400 x 600 pixels?

TIA

Yogi Yang

xequte

38682 Posts

Posted - Jan 27 2021 :  01:49:14  Show Profile  Reply
Hi

You can use:

// Make text that is too big for display automatically shrink to a smaller font size
TIETextLayer( ImageEnView1.CurrentLayer ).TextOverflow := ieoShrink;
ImageEnView1.Update()


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

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

yogiyang

India
727 Posts

Posted - Jan 27 2021 :  23:39:33  Show Profile  Reply
Hello Nigel,

Thanks for the info. But will it enlarge text if the amount of text is smaller than the area?

TIA

Yogi Yang
Go to Top of Page

xequte

38682 Posts

Posted - Jan 28 2021 :  02:12:54  Show Profile  Reply
If you specify a big font size for the text then it will always be reduced to fit in the available area.



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