Skip to content

fontlabapp.contours.nodes.coordinates · declarations 001

Back to fontlabapp.contours.nodes.coordinates

NodeRow module-attribute

NodeRow

current_glyph

current_glyph(package: Any) -> Any | None

Resolve actual active context; a valid FontGate glyph can evaluate false.

flWorkspace.currentGlyph is a cache. CurrentGlyph uses the active Font/Glyph window. Resolve only its name through the panel's already checked package.

measures

measures(rows: list[NodeRow]) -> list[tuple[str, float, float, float, float]]

Measure each consecutive selected pair, retaining degrees and direction.

number

number(value: float) -> str

Use original one-decimal coordinate display, with redundant zeros removed.

own_contours

own_contours(layer: Any) -> list[Any]

Keep drawn contours only; exclude all contours reached through components.

selected_nodes

selected_nodes(layer: Any) -> list[NodeRow]

Return own-contour/node indices, raw coordinates and on-curve flags.