Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-445

Non-horizontal text rendered incorrectly when creating SVG

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: SVGGraphics2D
    • Labels:
      None
    • Environment:
      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...

        Attachments

        1. svg-text-shapes.jpg
          35 kB
          pawprint
        2. svg-text-text.jpg
          27 kB
          pawprint

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              ded pawprint
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: