<text> position attributes should handle relative units

Bug #168845 reported by Pscientist on 2007-08-23
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Inkscape
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)

Pscientist (pscientist) wrote :
Ryan Lerch (ryanlerch) on 2008-01-22
Changed in inkscape:
importance: Undecided → Wishlist
status: New → Confirmed
aporter (aporter) wrote :

This bug still exists in 0.46.

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

su_v (suv-lp) wrote :

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

tags: added: text
su_v (suv-lp) wrote :

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

jazzynico (jazzynico) on 2013-06-27
Changed in inkscape:
status: Confirmed → Triaged
importance: Wishlist → Medium
tags: added: svg
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) on 2017-01-10
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers