googlefonts / googlefonts/fontc

Consider a newtype for contours

Open
#1,197 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
193
Forks
21
Avg merge
1d 17h
Merged PRs (30d)
65

Description

Currently we're using `BezPath` directly, but a contour has more explicit constraints than a BezPath; most importantly BezPath supports the idea of multiple subpaths, whereas a contour is always a single subpath.

This does not feel high priority, but worth capturing as a future ergonomics improvement.

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by tracing where BezPath is used for contours and identify the API constraints a contour must enforce. Done means reaching a decided design for a contour-specific type that cannot represent multiple subpaths, with affected uses and tests identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.