xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: inline-progression-dimension / block-progression-dimension maybe doesn't work
Date Tue, 15 Sep 2009 06:22:18 GMT
Agreed. Adjusting letter-space automatically depending on the available
space is not always seen as typographically "nice" which is why FOP
doesn't do it by default. By playing with
letter-spacing.minimum/.optimum/.maximum you can get you a certain
flexibility. But that has only limited effect when text is left-aligned.
It works best on justified text where our layout algorithm makes full
use of letter space shrinking/expanding.

On 14.09.2009 18:58:16 Jonathan Levinson wrote:
> inline-progression-dimension specifies the inline-progression-dimension
> of the content-rectangle.
> 
> The XSL-FO standard does not say a conforming implementation will
> squeeze characters to fit.  In the example you gave, it looks like the
> formatter was adjusting the letter-spacing negatively.
> 
> http://www.w3schools.com/xslfo/prop_letter-spacing.asp
> 
> You might be able to emulate this formatting behavior (which does not
> seem to be mandated by the standard) by filtering your input string
> using XSLT, multiplying the point-size of the font by the length of the
> string.  If this exceeds the inline-progression-dimension, you would
> reduce the letter-spacing appropriately.  I haven't tried this myself;
> it is just an idea.
> 
> Best Regards,
> Jonathan S. Levinson
> 
> 
> -----Original Message-----
> From: samea [mailto:info@samea.de] 
> Sent: Monday, September 14, 2009 11:40 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: RE: inline-progression-dimension / block-progression-dimension
> maybe doesn't work
> 
> 
> Hi,
> 
> thnaks for your quick answer, but in my case I have to reduce the space
> between the chars. There is only one line to draw, so wrapping or
> hyphenation is not possible. It's a app for businesscards.
> 
> Thanks
> 
> Markus
> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/inline-progression-dimension---block-progression-d
> imension-maybe-doesn%27t-work-tp25437260p25438168.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message