Skip to content

Conversation

@grebmeg
Copy link
Contributor

@grebmeg grebmeg commented Aug 25, 2025

Fixes #482

Before After
before.mov
after.mov

Essentially, the problem was that when a miter point was detected, it was added only on one side, which caused incorrect behavior in some cases. Below is a quick diagram showing what was happening before and after the fix for path M70,80 L0,80 L0,77.

image

I also verified the output against tiny-skia with identical rectangle parameters and stroke styles, and it matches now.

image

Copy link
Collaborator

@platlas platlas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have checked also with different angles in corner.
state before, with rectangle and two triangles
state after, with rectangle and two triangles

Nice improvement.

@grebmeg grebmeg added this pull request to the merge queue Aug 27, 2025
Merged via the queue into linebender:main with commit c0cefe4 Aug 27, 2025
15 checks passed
@grebmeg grebmeg deleted the gemberg/dash-pattern-fix branch August 27, 2025 20:26
@grebmeg grebmeg mentioned this pull request Aug 27, 2025
github-merge-queue bot pushed a commit that referenced this pull request Aug 28, 2025
Missed updating `CHANGELOG.md` in #490, fixing it now.
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.

[sparse_strips]: Incorrect dash rendering

2 participants