https://issues.apache.org/bugzilla/show_bug.cgi?id=46127
Summary: Trailing spaces don't contribute to <text> bounding box
Product: Batik
Version: 2.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: SVG DOM
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
When xml:space="preserve", trailing spaces should contribute to the <text>
element's bounding box. However, in the following document, both <text>
elements return the same bounding box:
<svg xmlns='http://www.w3.org/2000/svg'
width='400' height='300' viewBox='0 0 100 100'>
<text x='10' y='10' onclick='alert(evt.target.getBBox().width)'
xml:space='preserve'>a</text>
<text x='10' y='30' onclick='alert(evt.target.getBBox().width)'
xml:space='preserve'>a </text>
</svg>
The same applies to leading spaces.
--
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]