On 23 Mar 2005, at 19:20, Vincent Hennebert wrote:

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).



Setting the font-size for the surrounding fo:block to the max size of its inline children (60pt here) does produce a better result but the text is still not completely vertically center aligned (There seems to be more space below the text than above it). I wonder if anyone else faced himself with this very same problem and found a good solution for it. This is quite frustrating that this takes so much effort to achieve such a simple thing!


Thanks again,

Patrick


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



Reply via email to