Hi, Kumar,

It's not that the inline element takes the line height from the parent 
element but rather that the inline element takes the line height from the 
containing block. In this case, that is the block. I make the distinction 
because it's important to realize which properties go with which objects. 
fo:inline doesn't have a line-height property because it is supposed to be 
contained by a block-level element (not necessarily fo:block, though).

Personally, I wouldn't fix it in the FOP source code. I would instead 
adjust the FO code to be this:

<fo:block line-height="20pt" font-size="10pt"> This text is in font 10pt. 
Now we will switch to a Bigger font on the same line <fo:inline 
font-size="20pt"> This text is in bigger font but the spacing between the 
lines still remains at 10pt because of which this text will overflow with 
the line above. !!! </fo:inline></fo:block>

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)





"Puppala, Kumar (LNG-DAY)" <[EMAIL PROTECTED]> 
04/14/2005 10:43 AM
Please respond to
[email protected]


To
[email protected]
cc

Subject
fo:inline issue






I am encountering an issue with fo:inline. Consider the following tags:
 
<fo:block font-size="10pt"> This text is in font 10pt. Now we will switch 
to a Bigger font on the same line <fo:inline font-size="20pt"> This text 
is in bigger font but the spacing between the lines still remains at 10pt 
because of which this text will overflow with the line above. !!! 
</fo:inline></fo:block>
 
I think the problem here is that fo:inline takes the line-height value 
from its parent element and hence when there is an increase in font-size, 
it does not update the line-height of its rendering area and results in 
text overflowing. Does anyone know how I can fix this in the fop source 
code? Any help is greatly appreciated.
 
Thanks,
Kumar Puppala
 


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

Reply via email to