Skip to content

Apply pathLength to textPath startOffset - #1262

Merged
LaurenzV merged 1 commit into
mainfrom
textpath-start-offset-path-length
Nov 26, 2026
Merged

LaurenzV merged 1 commit into
mainfrom
textpath-start-offset-path-length

Conversation

@LaurenzV

Copy link
Copy Markdown
Collaborator

Fixes #879.

SVG 2 says the startOffset of a textPath is adjusted by the pathLength of the referenced element, but resvg used it as-is. An absolute startOffset is now scaled by the measured path length divided by pathLength. Percentages stay unaffected, and a zero pathLength moves the text off the path, as with an infinite offset.

(This PR was generated with Claude Opus 5.5.)

@LaurenzV
LaurenzV merged commit 761d53c into main Nov 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for pathLength?

1 participant