Skip to content

fontlabapp.anchors.edit · declarations 001

Back to fontlabapp.anchors.edit

apply_point_moves

apply_point_moves(prepared: PreparedPointMoves, title: str) -> dict[str, int]

Apply once, then create one final history notification, including partial writes.

finite

finite(value: Any) -> float

Reject coercible strings, booleans and nonfinite native coordinates.

prepare_point_moves

prepare_point_moves(package: Any, jobs: list) -> PreparedPointMoves

Prepare (glyph, master, [(existing_native_pin, (raw_x, raw_y))]) jobs.

Validate the whole batch before constructing any point or opening history. Pins retain identity and every native attribute; no additions or removals.

raw_point

raw_point(pin: Any) -> tuple[float, float]

Read exact coordinates, retaining the original untouched axis.

source_values

source_values(package: Any, names: list[str], masters: list[str]) -> tuple

Freeze native identities, raw pins, bounds, widths, recipes and dependencies.