On Monday 02 October 2006 20:47, Abel Braaksma wrote: > Dear List, > > I am new to XSL-FO, but I am trying to read up and catch up. From > what I understand from the specs and from the book "Definitive > XSL-FO", it is possible to do the following: > > <fo:block space-before="1em" space-after="1em">Paragraph with > different sizes: <fo:block/> > <fo:inline font-size="1.70" padding-top="2em">large,</fo:inline> > <fo:inline font-size="2.67" > padding-top="2em">x-large,</fo:inline> <fo:inline font-size="3.13" > padding-top="2em">xx-large.</fo:inline> And back to normal again. > </fo:block> > > In that example, I use the common property "padding-top". From the > compliance page from Apache Fop, I understand that padding-properties > are supported. Same for border-top-width, height and the like. These > properties can be used on inline elements as well as on block > elements. For block elements they seem to work perfect, but for > inline elements, they are completely ignored. >
No they are not ignored, although it may appear that way. This is one of the peculiarities of the XSL-FO spec. For block areas border/padding are inside the allocation rectangle for inline areas they are outside (see section 4.2.3). Therefore defining border/padding top/bottom on an inline area will not make the line any higher. > Can someone help me here? What I am trying to do is make the > line-height higher when halfway up a line, not knowing up-front what > the maximum height will be for that line (I cannot know what fits on > a line and what not). In HTML (as a bad comparison), this is done > automatically with inline elements (<span>, <em> etc). > Not sure I fully understand what you trying to achieve. FOP will use the maximum height of any inlines as the height of the line. So, it should do what you want without anything special. If I have misunderstood you could you please rephrase what you trying to do. BTW, which version of FOP are you using? > I tried using <fo:block> with keep-with-next, expecting that the > line-break on the end of the block would not appear, but alas, it did > anyway. So using a block as an inline element was no consort either. > > Anybody any ideas? > > Thanks in advance, > > Cheers, > Abel Braaksma > Cheers, Manuel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
