Page MenuHomePhabricator

SVG text tspan anchor bug
Closed, DuplicatePublicBUG REPORT

Description

In my SVG Washington Metro diagram, the text anchored to the end or middle fails to do so if tspan is used to wrap part of the text without defining a hard position, which is by-design for continuous flowing of the text. This bug did not occur to the older version of the same SVG.

This bug can be observed at "Foggy Bottom–GWU Kennedy Center", "Fairfax–GMU", "Ballston–MU", "Potomac Yard–YT", "Tenleytown–AU" and "Van Ness–UDC" in my SVG.

Event Timeline

JoKalliauer changed the task status from Open to Stalled.May 19 2023, 12:30 PM
JoKalliauer triaged this task as Low priority.
JoKalliauer added projects: Upstream, Commons, Thumbor.
JoKalliauer subscribed.

This appears to be the same bug as T97233. That bug claims to be fixed in librsvg 2.50.2.

For "Foggy Bottom–GWU Kennedy Center", "GWU" starts a new centered text chunk, but that text chunk also has a trailing space as a #text node. librsvg computes the length of "GWU " as just the width of the space. Since the space is thin, it looks like the GWU is left-aligned.

Another test file: