<text> position attributes should handle relative units

Bug #168845 reported by Pscientist
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Tavmjong Bah
Nominated for 0.47.x by aporter

Bug Description

Inkscape-0.45.1 does not handle em,ex,% units for <text> positioning.

I see that there is no UI for doing that in Inkscape itself, but at least
the import should handle this.

For example this works for rectangles:
 <rect x="0" y="1em" width="2em" height="1em" style="fill: red;"/>
 <rect x="0" y="3em" width="2em" height="1em" style="fill: blue;"/>

but the same is not possible with text:

 <text x="100" y="5em">text1</text>
 <text x="100" y="7em">text2</text>

The value for y is not converted, but ignored.
Both lines overlap.

(btw: this is one reason why currently bootchart output is not imported
correctly)

Tags: svg text
Revision history for this message
Pscientist (pscientist) wrote :
Ryan Lerch (ryanlerch)
Changed in inkscape:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
aporter (aporter) wrote :

This bug still exists in 0.46.

Attached a modified example from the one Pscientist posted (it needed a font-size).

Revision history for this message
su_v (suv-lp) wrote :

Still present in Inkscape 0.48+devel r9870, on OS X 10.5.8.

tags: added: text
Revision history for this message
su_v (suv-lp) wrote :

Same issue with <tspans>:
Bug #262528 “Problem with <tspan> element and attribute dy”

jazzynico (jazzynico)
Changed in inkscape:
status: Confirmed → Triaged
importance: Wishlist → Medium
tags: added: svg
Revision history for this message
su_v (suv-lp) wrote :

Fix committed in rev 14505.

Changed in inkscape:
assignee: nobody → Tavmjong Bah (tavmjong-free)
milestone: none → 0.92
status: Triaged → Fix Committed
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.