Skip to content

fontlabapp.studios.vertical_metrics.table · declarations 001

Back to fontlabapp.studios.vertical_metrics.table

COLUMNS module-attribute

COLUMNS

FIELD_LABELS module-attribute

FIELD_LABELS

MASTER_FIELDS module-attribute

MASTER_FIELDS

master_values

master_values(package: Any) -> list[tuple[str, list[float]]]

Read all master metrics, as the writer reads them back; restore the master (original).

number

number(value: float) -> str

plan

plan(old: list[tuple[str, list[float]]], rows: list[tuple[str, list[float]]]) -> list[tuple]

Validate every proposed row (as run did) and return the changed (master, field, previous, value).

validate_metrics

validate_metrics(values: list[float]) -> list[float]

Require four finite ordered metrics within signed 16-bit limits.

write_changes

write_changes(package: Any, changes: list[tuple], title: str) -> dict[str, Any]

Write the changed values of a validated plan as one Undo step named title (original).

changes holds (master, field, previous, value). Refuse when a previous value differs from the font; write nothing when no value changes.