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

Text decoration in text tag is not painted properly when using different font sizes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: GVT Text
    • Labels:
      None
    • Environment:
      Operating System: Linux
      Platform: PC

      Description

      While testing a custom text editing component for the application I'm working on using Batik, I found that underline, overline and line-through text decorations aren't positioned correctly when different font sizes are used.

      I observed this behaviour when using a text tag embedded with tspan tags.

      Steps to reproduce:
      1. Do a fresh checkout of the trunk sources (at time of writing: 1378739)
      2. Download this bug report's SVG attachment.
      3. Start the Squiqqle browser from the checked out sources.
      4. Load the attachment in the Squiqqle browser.

      Actual results:
      As the attachment shows, both text tags contain two words displayed in a different font size. Both have underline, overline and line-through decorations. For the first word the y-position and thickness of the lines is calculated correctly. However, for the second word (which is in a different font size) the lines are positioned on the same y value and have the same thickness.

      Expected results:
      The 'line' text decorations should have been positioned on different y values, each corresponding to their font size. Dito for the line thickness.

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              m.s.ganzeboom@rug.nl Mario Ganzeboom
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: