Skip to content

fontlabapp.studios.mark_attachment.cursive · declarations 001

Back to fontlabapp.studios.mark_attachment.cursive

FILTER module-attribute

FILTER

Rings module-attribute

Rings

TITLE module-attribute

TITLE

anchor_writer module-attribute

anchor_writer

choose_attachment

choose_attachment(rings: Rings, profile: dict[str, float], candidates: list[float]) -> Point

Pick the first minimum of thickness and undirected boundary-angle errors.

cursive_changes

cursive_changes(glyph: Any, layer: Any, profile: dict[str, float]) -> list[Any]

Plan missing connections only, with deterministic near-edge searches.

measure_sample

measure_sample(rings: Rings, points: list[Point]) -> dict[str, float]

Average thickness fractions and boundary tangents around entry/exit pins.

needed_connections

needed_connections(name: str) -> list[str]

Retain the source tool's form-name routing without Unicode guesses.

outline_rings

outline_rings(layer: Any) -> Rings

Flatten transformed, closed outline shapes; keep contour winding and holes.

read_sample

read_sample(path: str, master: str, conversions: list[str] | None = None) -> dict[str, float]

Load a portable profile; reject text loss, wrong format and master mismatch.

sample_document

sample_document(layer: Any, master: str) -> dict[str, Any]

Capture the two named connection pins and package the portable profile.

save_document

save_document(path: str, document: dict[str, Any]) -> None

Write a new UTF-8 file; leave any existing file untouched.

validate_profile

validate_profile(data: Any) -> dict[str, float]

Require a finite, nonnegative thickness profile and two tangent angles.

vertical_spans

vertical_spans(rings: Rings, x: float) -> list[tuple[float, float, float, float]]

Return filled vertical spans and their boundary angles using nonzero winding.