Skip to content

fontlabapp.fontui.outline_order · declarations 001

Back to fontlabapp.fontui.outline_order

bottom_left

bottom_left(points: list[Point]) -> int | None

Index of the lowest, then leftmost on-curve point; None if there is none.

direction_changes

direction_changes(layer: Any) -> list[Change]

Use same-shape direction; keep cross-shape parity conflicts with a note.

final_smooth_points

final_smooth_points(contours: list[Any]) -> set[tuple[float, float]]

Coordinates of existing final off-curves with raw Smooth; read only.

own_contours

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

Contours of the editable shapes, in layer order, and notes for kept shapes.

start_changes

start_changes(layer: Any, reference: Any | None) -> list[Change]

One row per closed contour whose start moves; notes for kept shapes.

With a reference layer, contour n uses the bottom-left node number of reference contour n when both have the same node count. Edit: (contour, new start index, position of that node).

wrong_contours

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

Use FontLab's start-and-midpoint nesting rule, in glyph coordinates.

Each item is (contour, owning shape transform). All closed contours, including kept shapes, contribute to depth. Only callers choose edits. Native calculate(k + 0.5) evaluates the midpoint of segment k.