Manuel Mall wrote:
Sorry, but your example does not make sense to me. You provide HTML not
XSL:FO. Can you provide the exact fo file you feed into fop so we can
better understand your issue?
My apologies. I thought it'd be clearer that way. Here's a snippet:
<fo:block line-height="313%" space-before="1em"
space-after="1em">Paragraph with different sizes: <fo:block/>
<fo:inline font-size="60%" role="xhtml:font">x-small, </fo:inline>
<fo:inline font-size="80%" role="xhtml:font">small,</fo:inline>
<fo:inline font-size="100%" role="xhtml:font">normal,</fo:inline>
<fo:inline font-size="135%" role="xhtml:font">larger,</fo:inline>
<fo:inline font-size="171%" role="xhtml:font">large,</fo:inline>
<fo:inline font-size="267%" role="xhtml:font">x-large,</fo:inline>
<fo:inline font-size="313%" role="xhtml:font">xx-large.</fo:inline>
And back to normal again.
</fo:block>
Here you see that I set the line-height on the block element. When I set
the line-height on the fo:inline elements, it does not have any effect.
If the block is small enough so that it spans multiple lines, without
the line-height in the block element, the text will overlap. But with
it, *all* lines will have the maximum height. I do not want that. I only
want the lines to have the minimum needed line-height for the size of
the text it contains.
From the specs I understand that the line-height property is available
on inline level elements also. I tried, but to no effect, like this
(actually, I expected the overlap not to happen at all, unless I'd
specifically say so):
<fo:block space-before="1em" space-after="1em">Paragraph with
different sizes: <fo:block/>
<fo:inline line-height="60%" font-size="60%"
role="xhtml:font">x-small, </fo:inline>
<fo:inline line-height="80%" font-size="80%"
role="xhtml:font">small,</fo:inline>
<fo:inline line-height="100%" font-size="100%"
role="xhtml:font">normal,</fo:inline>
<fo:inline line-height="135%" font-size="135%"
role="xhtml:font">larger,</fo:inline>
<fo:inline line-height="171%" font-size="171%"
role="xhtml:font">large,</fo:inline>
<fo:inline line-height="267%" font-size="267%"
role="xhtml:font">x-large,</fo:inline>
<fo:inline line-height="313%" font-size="313%"
role="xhtml:font">xx-large.</fo:inline>
And back to normal again.
</fo:block>
Hmm, I see now there's also a line-stacking-strategy. Should I do
something with that?
Any ideas are very welcome,
Cheers,
-- Abel Braaksma
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]