Details
-
Bug
-
Status: Open
-
Resolution: Unresolved
-
1.5
-
None
-
None
-
Operating System: All
Platform: PC
Description
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...