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

Wrong font used for single char in SVG rendering

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: GVT, GVT Text

      Description

      Please take a look at the attached Java class and the attached PNG files. Please note that the test currently requires two fonts files which I can not provide. It should be easy to exchange them with other font files.

      The problem is that the index is not correctly updated and so the second char does not get the correct font. Which leads to an incorrect rendering.

      I have also attached a patch.

      The current SVN version (# 1543214) also shows the bug.

        Attachments

        1. actual-output.png
          5 kB
          Raimar Falke
        2. expected-output.png
          5 kB
          Raimar Falke
        3. fix_for_BATIK-1061.patch
          0.9 kB
          Raimar Falke
        4. ShowBatikBug.java
          3 kB
          Raimar Falke

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rfalke Raimar Falke
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: