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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Resize text to fill specific size

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
yogiyang Posted - Jan 27 2021 : 00:09:44
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
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 28 2021 : 02:12:54
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
yogiyang Posted - Jan 27 2021 : 23:39:33
Hello Nigel,

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

TIA

Yogi Yang
xequte Posted - Jan 27 2021 : 01:49:14
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