On Oct 3, 2008, at 12:23, Vincent Hennebert wrote:
<snip />
Resulting in all texts being shifted upwards. I found a
workaround by inlining each text:
<fo:inline alignment-adjust="central">
<xsl:value-of select="."/>
</fo:inline>
Not sure there is any other workaround, I’m afraid. If text-depth were
implemented you could use that, although that would also require to
tweak your stylesheet anyway. Maybe some particular value of the
line-stacking-strategy property may do the job, but this property
remains cryptic to me.
FWIW: I don't think this property will really solve anything. "line-
stacking-strategy" tells the formatter how the lines in a given block
are to be stacked, or IOW, which height will be used for each line-
area. For a value of "max-height", the actual line-height can vary
for each line, depending on the content. (in the Recommendation's
terms: each line will use the 'maximum-line-rectangle') So, if an
image appears in the line, and the image is larger than the largest
glyph, then the line will be as high as that image (plus half-leading).
For a value of "font-height", the lines for a given block will all
have the same actual height, which depends on the font(-size) of the
block in question (in the Recommendation's terms: each line will use
the 'nominal-requested-line-rectangle'). Result is that the same
image would now overflow the previous or next line(s), since it does
not fit. Analogous reasoning for nested inlines or wrappers with a
different font or simply a larger font-size than the block.
FOP currently offers support for those two values: max-height and
font-height. The value of line-height is not supported. I haven't
checked yet whether FOP follows the Recommendation here, and does the
same for line-height as it does for max-height.
What you can do, by specifying "font-height", is make sure that the
lines in cell 1.1 are always exactly the same height as in cell 1.2,
with the described side-effect for embedded text in a larger font(-
size) or larger images.
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]