xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: line-height interpretation
Date Thu, 08 Jul 2004 11:08:58 GMT
Adam Augusta wrote:
> I think I've figured out the formula FOP uses.  I'm quite sure it's wrong; 
> the height of the block should simply be line-height, if specified in 
> length, or as a multiplier of the font-size, if specified dimensionless.
> It seems to be:
> Diff(Ascender,Descender)*font-size/1000 + (line-height - font-size)

FOP adds a half-leading display space above and below the line,
the half-leading is computed as
  (lineHeight - fontState.getFontSize()) / 2

There are numerous inconsistencies in the application though.


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

View raw message