Patrick JUSSEAU wrote:
I can't find a way to use different styles within the same fo:block. I need to generate a pdf file containing different lines. Each line is composed of different style and size. For example I want, on the same line to display "this is a" with an 30 point Helvetica font and "Test" with an 12 point Courier font.

Here is what I tried:

<fo:block text-align="center" background-color="red">
<fo:inline font-family="Helvetica" font-size="30pt">This is a </fo:inline>
<fo:inline font-family="Courier" font-size="12pt">Test</fo:inline>
</fo:block>


FOP 0.20.5 does not support changing the fontsize to a larger font than
it was specified for the block, because it can't change line spacing.
You can try to use the largest font size on the block, an specify a
smaller font size inline:

 <fo:block text-align="center" background-color="red" font-size="30pt">
     <fo:inline font-family="Helvetica">This is a
 </fo:inline>
     <fo:inline font-family="Courier" font-size="12pt">Test</fo:inline>
 </fo:block>

This will however use a line height appropriate for a 30pt font
throughout the whole block.

J.Pietschmann


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



Reply via email to