Hi Jay,
  Thanks for your input. I don't think that adjusting the FO code would be a
good idea since doing that would render the text using lot of extra space (
if its changed to 20pt, then we get the effect of double spaced text). Also
since I use SAXParser to actually parse my FO file, there is no way for me
to know in advance what would be the maximum font-size that is present since
this data comes from a user-specified xml file and can be anything. 

Thanks,
Kumar Puppala


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 14, 2005 12:00 PM
To: [email protected]
Subject: Re: fo:inline issue

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]

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

Reply via email to