On 18.09.2006 17:48:46 Peter wrote: > Gentlepeople, > > I am trying to get rid of line-leading (not sure this is the correct term > actually) when adding an instream-foreign-object or external-graphic to a > block > > As an example > > <fo:block-container absolute-position="fixed" left="0pt" top="0pt"> > <fo:block background-color="green" line-height="0" > > <fo:instream-foreign-object background-color="red"> > <svg:line x1="10" y1="10" x2="10" y2="20" > style="stroke:rgb(0,0,0);stroke-width:1"/> > </svg:svg> > </fo:instream-foreign-object> > </fo:block> > </fo:block-container> > > > In the result (pdf using fop 0.92) the instream object (with a red > background) is not positioned at the top but rather at a position which > seems to (indirectly?) depend on the font-size. > > One suggestion to eliminate this region is to set the line-height to 0 (see > http://www.renderx.net/lists/xep-support/2607.html) > > That does however not seem to work with FOP. The area between the top of the > red box and the top of the page is gone, but the line is no longer > positioned correctly, but shifted vertically.
I've seen this, too, but haven't had the time to investigate, yet. I'm actually not 100% sure that the suggestion from RenderX is correct but it probably is. Maybe Manuel can shed some light to this? He's our line-building specialist. :-) I'm not solid in this area at the moment. > If I set font-size to 0 and do not explicitly set line-height it seems to > work with FOP. Yep, that's our current work-around. > So I guess I have two questions > > 1) What is the advised way to eliminate this "line-leading" area (the > approach above seems not very elegant)? For the moment, font-size="0pt". :-) > 2) Is the suggestion made on the XEP list wrong and/or is there a problem in > FOP and/or is this one of the implementation dependant areas of FO? Manuel, do you know? > Any guidance, as always, extremely appreciated. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
