I struggled with something similar See http://markmail.org/message/5ppuwom7arnzqjy7
The solution provided was to set font-size="0pt" Hope this helps, Peter > From: Ulrich Mayring <[email protected]> > Reply-To: <[email protected]> > Date: Wed, 14 Jan 2009 19:45:10 +0100 > To: <[email protected]> > Subject: SVG positioning problem > > Hi folks, > > since upgrading from FOP 0.20.5 to 0.95 the positioning of my SVG elements > changed. In my FO I am basically doing this: > > <fo:block-container position="absolute" left="0.5cm" top="20cm" height="1cm" > width="0.5cm"> > <fo:block> > <fo:instream-foreign-object> > <svg:svg height="0.5cm" width="0.5cm"> > <svg:rect height="0.2pt" width="0.5cm" y="0cm" x="0cm"/> > </svg:svg> > </fo:instream-foreign-object> > </fo:block> > </fo:block-container> > > My understanding is that this should lead to a line positioned 20cm from the > top of the page. However, the line appears 19.8cm from the top. > Interestingly, if I change the "20cm" to "10cm" in the block-container's top > attribute, then the line is positioned 10.2cm from the top. So the difference > is 2mm in both cases. Going halfway between these cases, using "15cm" as > value, the line is positioned exactly right. > > Perhaps I should do my SVG positioning differently than with a > block-container? Browsing through FOP's svg examples didn't provide any > immediate insight... > > The FO file is available upon request. > > Many thanks in advance, > > Ulrich > > > --------------------------------------------------------------------- > 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]
