Skip to content

fontlabapp.studios.outline_doctor.model · declarations 001

Back to fontlabapp.studios.outline_doctor.model

MIXED module-attribute

MIXED

OUTSIDE module-attribute

OUTSIDE

Planner module-attribute

Planner

Verifier module-attribute

Verifier

Writer module-attribute

Writer

after

after(position: int, index: int, points: Sequence[Point] | None, shape: Any) -> tuple

One Issue.after entry: deleted (None) or replaced by points.

contours

contours(layer: Any) -> list[tuple[int, int, int, Any, Any]]

(number, position, index, shape, contour) over the editable outlines; numbers count from 1.

fmt

fmt(value: float) -> str

held_back

held_back(planned: Mapping[str, list[Issue]], chosen: Sequence[str]) -> str

The compatibility hold-back reason for one glyph, or "" when the edit may go ahead.

planned maps every master to its issues. Masters must plan the same keys; a master outside chosen that needs the edit holds it back too.

moved

moved(points: Sequence[Point], shape: Any) -> tuple[Point, ...]

points in glyph coordinates (plain-translated shapes only).

note_rows

note_rows(notes: Sequence[str]) -> list[Issue]

outline_shapes

outline_shapes(layer: Any) -> tuple[list[tuple[int, Any]], list[str]]

(position, shape) of the editable own outlines and notes for the rest.

plural

plural(count: int, word: str) -> str

segments_of

segments_of(points: Sequence[Point], truetype: bool) -> tuple[tuple[tuple[float, float], ...], ...]

Closed line/cubic/quadratic segments starting at the first on-curve node.

translation

translation(shape: Any) -> tuple[float, float] | None

(dx, dy) when the shape transform only moves; None for scale, slant or turn.

unsigned_area

unsigned_area(segments: Sequence[tuple[tuple[float, float], ...]]) -> float

Exact area of closed line/quadratic/cubic segments (Green's theorem).