You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Matthew L. Avizinis" <ml...@gleim.com> on 2002/10/01 22:13:21 UTC

FOP defect when rendering rotated grouped text and path objects

Hello all
I have found that when attempting to render an SVG to pdf if the image
contains mixed text and line objects such as paths, rect's, etc. which are
grouped, if the group is rotated [by either rotate() or matrix()] by an
angle <=±8°, the text is transformed correctly while the path remains
unrotated.  If the angle of rotation is >=±9° the path (or rect, line, etc.)
is rotated correctly.
for example,

<svg width="1395" height="1747">
  <g transform="rotate(-9) translate(-13.5791 189.397) translate(-10.6777
6.69118)">
    <text x="145px" y="209px" transform="translate(-86.6667 -48)
font-size="116" font-family="Arial" font-weight="bold">P</text>
    <text x="607px" y="289px" transform="translate(-602.667 -166.667)
translate(612.111 247.356) scale(0.965631 1) translate(-612.111 -247.356)
scale(0.964408 1) fill="rgb(0,0,0)" font-size="116" font-family="Arial"
font-weight="bold">G</text>
    <path d="M52.7692 81.1538 L1113.88 82.1267" transform="translate(1113.88
81.6403) scale(0.988691 1)  fill="none" stroke="rgb(0,0,0)"
stroke-width="10"/>
    <path transform="translate(0.992548 0.121852) scale(1.01556 1)"
fill="none" stroke="rgb(0,0,0)" stroke-width="4" d="M1164 -6 L1164 1569 L-3
1569 L-3 -6 z"/>
  </g>
</svg>

The image is correctly displayed by the current version of Batik.  So I'm
wondering if this is still a problem with Batik or with FOP or both.  Anyone
have any ideas about this and is there any workaround available?  If this a
new defect, should I report it further than this?  If so, point me to
instructions for Bugzilla.

thanks in advance,
   Matthew L. Avizinis <ma...@gleim.com>
Gleim Publications, Inc.
   4201 NW 95th Blvd.
 Gainesville, FL 32606
(352)-375-0772
      www.gleim.com <http://www.gleim.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


RE: FOP defect when rendering rotated grouped text and path objects

Posted by "Matthew L. Avizinis" <ml...@gleim.com>.
OK, thanks for your assessment.
Now all I have to do is figure out how to use Bugzilla...

> 
> This could be a bug in the PDF renderer. You'll have to wait
> for Keiron to reappear for comments. Perhaps you should open
> a bug in bugzilla.
> 
> J.Pietschmann
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: FOP defect when rendering rotated grouped text and path objects

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Matthew L. Avizinis wrote:
> I have found that when attempting to render an SVG to pdf if the image
> contains mixed text and line objects such as paths, rect's, etc. which are
> grouped, if the group is rotated [by either rotate() or matrix()] by an
> angle <=±8°, the text is transformed correctly while the path remains
> unrotated.  If the angle of rotation is >=±9° the path (or rect, line, etc.)
> is rotated correctly.

This could be a bug in the PDF renderer. You'll have to wait
for Keiron to reappear for comments. Perhaps you should open
a bug in bugzilla.

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org