https://issues.apache.org/bugzilla/show_bug.cgi?id=53962

          Priority: P2
            Bug ID: 53962
          Assignee: [email protected]
           Summary: Text decoration in text tag is not painted properly
                    when using different font sizes
          Severity: minor
    Classification: Unclassified
                OS: Linux
          Reporter: [email protected]
          Hardware: PC
            Status: NEW
           Version: 1.8
         Component: GVT Text
           Product: Batik

Created attachment 29444
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29444&action=edit
SVG file showing the incorrect text decoration positioning with different font
sizes

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to