Bug 26309

Summary: Non-horizontal text rendered incorrectly when creating SVG
Product: Batik - Now in Jira Reporter: K M <koldskool>
Component: SVGGraphics2DAssignee: Batik Developer's Mailing list <batik-dev>
Status: NEEDINFO ---    
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Text as shapes workaround in Adobe SVG Viewer
Text problems shown in Adobe SVG Viewer

Description K M 2004-01-21 13:13:31 UTC
Using SVGGraphics2D to create SVG maps. When drawing text onto the map works 
fine for horizontal text but rotated text (e.g. road names) does not render 
correctly in SVG - all the letters are placed one on top of another. Using 
AffineTransforms to move all the map components into image coordinate space. 
Code works correctly if using standard java.awt.Graphics2D (on a 
BufferedImage) - problem only shows up with SVGGraphics2D. Workaround is to 
draw all text as shapes (using different SVGGraphics2D constructor) but this 
means text in the image is not searchable/selectable. Only tried on Windows 
2000 so far...
Comment 1 K M 2004-01-21 13:45:40 UTC
Created attachment 10043 [details]
Text as shapes workaround in Adobe SVG Viewer
Comment 2 K M 2004-01-21 13:46:13 UTC
Created attachment 10044 [details]
Text problems shown in Adobe SVG Viewer
Comment 3 Thomas Deweese 2004-08-12 11:59:12 UTC
Can you provide some additional information, such as sample
code that is used to draw the text (there are lots of ways to draw
text in a Graphics2D).  And also sample SVG Files might help a lot
as well.

  It seems odd to me that the first character is in the right
place but the rest of the characters 'cluster' on the 'center point'
of the string.
Comment 4 Thomas Deweese 2005-03-22 12:16:16 UTC
Reassigning all open bugs to the development list.
Sorry for the mass mailing.