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

           Summary: Trailing whitespace in tspan elements breaks
                    text-anchor alignment (only on Windows?)
           Product: Batik
           Version: 1.8
          Platform: PC
               URL: http://mail-archives.apache.org/mod_mbox/xmlgraphics-b
                    atik-users/201008.mbox/browser#msg-1
        OS/Version: Windows Vista
            Status: NEW
          Severity: minor
          Priority: P3
         Component: GVT Text
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Trailing whitespace seems to trigger a weird issue where text contents are
thrown right a lot more than expected. It's as if "text-anchor" inheritance was
no longer honored in these cases (and reset to "start", the lacuna value).

Bug's URL points to a thread ("JSVGCanvas Problems - Rendering and Writing")
which contains the original test case and a modified test case which doesn't
reproduce the issue (basically, with trailing whitespace trimmed).

According to the thread, the issue doesn't seem to reproduce on Linux. Can
anyone else confirm and provide information for MacOS as well?

Bug 41451 seems tightly related, although the issue is not quite the same (it
refers to a MacOS-specific issue). Also, thread "tspans fail to line up" [1]
seems related as well. I wonder if all these are the same...?

A possible workaround is to make sure tspan elements don't contain trailing
whitespace.

[1]
http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/200701.mbox/browser#msg-19

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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