ShrinkFontToFit and WordWrap

Stimulsoft Ultimate discussion
Post Reply
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

ShrinkFontToFit and WordWrap

Post by tpontow »

Hello Stimulsoft Support,

in a text component i'm using both ShrinkFontToFit (with ShrinkFontToFitMinimumSize == 5) and WordWrap == true. With that a longer text first of all is wordwrapped. Then when there is not enough space in the text component the font is shrinked.

Is it possible to get this behaviour the other way round? I want the font to be shrinked until there is no more space in a line even with minimum font size and then the word wrap should be kicking in.

Thanks and kind regards
Thorsten Pontow
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: ShrinkFontToFit and WordWrap

Post by Alex K. »

Hello,

We have discussed your proposal, and we think that it would be incorrect in most cases.
Can you please send us a sample which shown your issue for analysis.

Thank you.
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Re: ShrinkFontToFit and WordWrap

Post by tpontow »

Hello Aleksey,

i don't think we need a sample here. In a text component use font size 8, WordWrap:true, ShrinkFontToFit:true and ShrinkFontToFitMinimumSize:5. All i need is that the word wrap is avoided until the font is shrinked to minimum size. Then and only then, if there is not enough space in the first line, i want the word wrap to be executed.

Thanks and kind regards
Thorsten Pontow
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Re: ShrinkFontToFit and WordWrap

Post by tpontow »

Hello Aleksey,

i attached a little sample here. Please open it and view the preview.

Thanks and kind regards
Thorsten
Attachments
ShrinkFontToFit.mrt
Sample for WordWrap and ShrinkFontToFit question
(7 KiB) Downloaded 220 times
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: ShrinkFontToFit and WordWrap

Post by Alex K. »

Hello,

We need some time for investigating the issue. We will let you know about the result.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: ShrinkFontToFit and WordWrap

Post by HighAley »

Hello, Thorsten.

The main problem in your scenario is that the ShrinkFontToFit property works at post-processing.
Maybe it's possible to get the right result in Double Pass mode.

We will try to find a solution for you.

Thank you.
Post Reply