Manuel Mall wrote:
If I remove the line-height="313%" from the fo:block it seems to do exactly what you want, that is each line get the minimum necessary height to render it.

This is precisely what I want to happen. Hmm, I'll make a full test, leaving out as much as possible, and if it still doesn't work, I will post my results online, so you can see the resulting PDF. I use FOP 0.92a. Perhaps that's the prb?

If I leave your settings the line-height on the first line is correctly set to 37.56pt (12pt * 313%). Note: As you didn't specify a font-size on the fo:block the inherited font-size is chosen which is the document default size of 12pt. The other lines get either the minimum line-height of 37.56pt or a bigger height if larger fonts are used.

That last thing still doesn' t happen. Hmm, my guess is, I have some setting alongside my copy 'n' past xsl-fo that I missed (?).

Setting the line-height on an inline element does simply set the minimum height for that element.

My thoughts exactly

In your examples this never takes effect as the actual height is larger then the line-height. For example: <fo:inline line-height="60%" font-size="60%" role="xhtml:font">x-small, </fo:inline> Assuming on the enclosing block the font-size is 12pt. That means the font-size on the inline is 7.2pt (60% of 12pt). Now you say the line-height is 60% of that value making it 4.32pt (60% of 7.2pt). Obviously that won't fit.

Aha! That maybe what I am missing here. I thought '60% of original inherited font size".

Hope this helps

I will try these new insights. Thanks for making me understand the subject matter a little better.

Regards,
-- Abel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to