Skip to content

Dash pattern#159

Merged
Velli20 merged 2 commits into
mainfrom
dash-pattern
May 21, 2026
Merged

Dash pattern#159
Velli20 merged 2 commits into
mainfrom
dash-pattern

Conversation

@Velli20
Copy link
Copy Markdown
Owner

@Velli20 Velli20 commented May 21, 2026

No description provided.

codex added 2 commits May 19, 2026 21:56
Add a stroke style module that validates PDF dash arrays,
normalizes odd interval counts, and stores dash state in the
canvas graphics state.

Thread stroke style through CanvasBackend and RecordingCanvas so
offscreen rendering and replay preserve dash patterns. Apply both
the d operator and ExtGState D entries through the same setter.

Render dashed strokes in the Skia backend with a dash path effect,
while keeping the FemtoVG backend wired for the new trait shape.

Co-authored-by: Codex <codex@openai.com>
Move DashPattern into pdf-graphics and re-export it from the
crate root so canvas and page parsing share the same typed dash
state.

Validate dash operands once in pdf-graphics, map those failures at
crate boundaries, and keep empty dash arrays as the solid-stroke
case instead of storing a sentinel.

Update pdf-page ExtGState parsing and pdf-canvas graphics-state
application to use the typed DashPattern payload directly, while
preserving stroke-style recording and replay behavior.

Co-authored-by: Codex <codex@openai.com>
@Velli20 Velli20 merged commit c654021 into main May 21, 2026
4 checks passed
@Velli20 Velli20 deleted the dash-pattern branch May 21, 2026 17:37
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.

2 participants