Skip to content

GlyphShape - #15

Merged
MaksimG82 merged 9 commits into
developfrom
feature/shape
Oct 22, 2026
Merged

MaksimG82 merged 9 commits into
developfrom
feature/shape

Conversation

@MaksimG82

Copy link
Copy Markdown
Owner

No description provided.

MaksimG82 and others added 9 commits October 21, 2026 18:18
Moves cached extraction + layout resolution out of GlyphView into a shared
internal helper so an upcoming GlyphShape can reuse it. No behavior change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GlyphShape reuses GlyphPathProvider and offsets the cached path by the
rect's origin. Previews mirror GlyphView's. GlyphPathCache docs updated
for the shared pipeline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Covers tight/fontMetrics bounds, non-zero rect origin, parity with
GlyphPathProvider, and empty path for outline-less characters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Strokes, gradient fills, content clipping, and trim animation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GlyphView stays functional but is marked deprecated, pointing to
GlyphShape(...).fill(color). Its previews are removed (GlyphShape has
equivalents). README examples, DocC landing page, and CLAUDE.md now
use GlyphShape, with a short migration note in the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
inset(by:) shrinks the layout rect the glyph is fitted into, enabling
strokeBorder. path(in:) returns an empty path when the inset rect has
no area.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds a stroke vs strokeBorder preview, a README example, and a CLAUDE.md
note on InsettableShape. Documents that miter joins on sharp glyph
corners can extend past the frame; examples use round joins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaksimG82
MaksimG82 merged commit 204dc81 into develop Oct 22, 2026
2 checks passed
@MaksimG82
MaksimG82 deleted the feature/shape branch October 22, 2026 12:22
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.

1 participant