Andreas L. Delmelle a écrit :
I would like to put, on the same line, several texts
that have different font sizes. For example the word
"BIG" in 60pt followed by the word "SMALL" in 40pt.
The following FO code does not completely work since
the text baseline is vertically centered in the parent
block section and therefore the text gets out above
the block!


If I get the problem correctly, the 'display-align' property[1] would solve
a lot of your problems, but... in FOP 0.20.5 it was only partially
implemented, and works only on table-cells and block-containers (not regular
blocks).

I'm not quite sure about that. I would say that this is somehow related to the line-stacking-strategy property. It is not implemented in Fop 0.20.5 [1] and I don't know which is the fallback behaviour. I guess that setting this property to 'max-height' would solve the problem. But this part of the XSL spec still is unclear to me.
As a workaround, you can also set the font-size for the surrounding fo:block to the max size of its inline children (60pt here).


Hope this helps,
Vincent

[1] http://xml.apache.org/fop/compliance.html#fo-property-line-stacking-strategy


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



Reply via email to