Bug in text width computation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Medium
|
Unassigned |
Bug Description
Scenario: a text item with text-anchor:middle contains
two tspans. The first tspan has no style attributes.
The second has a font size change. The text item as a
whole renders with a correctly computed middle anchor
point.
Now add a y parameter to the second tspan. The second
tspan now renders at the correct y position, but the
width computation on the containing tspan is now
computed incorrectly, with the effect that the
text-anchor center computation fails to consider this
tspan element.
The attached file renders correctly in Adobe's SVG
plugin, but incorrectly in inkscape. Removing the Y
parameter from any of the tspans to see how the text
anchor computation changes. It is most obvious in the
PX box at the upper right.
Changed in inkscape: | |
status: | New → Confirmed |
Sorry. I should have mentioned that this was happening in
Inkscape 0.43 on Linux, but I suspect it's a generic bug.