Hi Andreas, Zitat von Andreas Delmelle <andreas.delme...@telenet.be>:
> On 23 Feb 2011, at 09:22, li...@philipp-wagner.com wrote: >> I'm having a little FO problem. It's not really FOP specific, the >> output looks pretty much the same with XEP, but here it goes: >> >> I have an auto-generated document that has a lot of >> <fo:block><fo:inline>some text</fo:inline></fo:block> >> >> For "bigger" font sizes (e.g. 12pt) the fo:inline does not have >> much of a visible impact (it looks almost or completely the same >> with or without the nested fo:inline). >> >> But if I use smaller font sizes (7pt), I get big spaces between two >> following fo:blocks. > > IIC, the effect you are seeing is due to the difference in font-size > between the inline and the block. Line-height defaults 120% the > font-size, IIRC, so font-size="12pt" means an implicit > line-height="14.4pt". > > The only way I know of to mitigate the effect you're seeing, is to > make sure the smaller font-size/line-height are specified on the > surrounding fo:block, from which they will be inherited by the > fo:inline anyway. Thank you a lot, that was the much-needed hint. I wrote a small XSLT to add the minimum font-size of the inline elements to the fo:block and it seems to work great so far! Thank you! Philipp --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org