Comment 0 for bug 167258

Revision history for this message
Shap (shap) wrote :

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.