Details
-
Bug
-
Status: Open
-
Resolution: Unresolved
-
1.8
-
None
-
None
-
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.