Bug 26309 - Non-horizontal text rendered incorrectly when creating SVG
Summary: Non-horizontal text rendered incorrectly when creating SVG
Status: NEEDINFO
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: SVGGraphics2D (show other bugs)
Version: 1.5
Hardware: PC All
: P3 normal
Target Milestone: ---
Assignee: Batik Developer's Mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-21 13:13 UTC by K M
Modified: 2007-09-20 23:59 UTC (History)
0 users



Attachments
Text as shapes workaround in Adobe SVG Viewer (34.88 KB, image/jpeg)
2004-01-21 13:45 UTC, K M
Details
Text problems shown in Adobe SVG Viewer (27.38 KB, image/jpeg)
2004-01-21 13:46 UTC, K M
Details

Note You need to log in before you can comment on or make changes to this bug.
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.