fontlabapp.metrics.master_writer · declarations 001
Back to fontlabapp.metrics.master_writer
ALIASES
module-attribute
ALIASES: Mapping[str, str]
FIELDS
module-attribute
FIELDS: Mapping[str, str]
TITLE
module-attribute
TITLE
TOLERANCE
module-attribute
TOLERANCE
parse
parse(values: Mapping[str, Mapping[str, object]]) -> dict[str, dict[str, float]]
Return the checked request {master: {field: float}} in field order.
Aliases (ALIASES) become their field. Raise ValueError for an
empty request, an empty master entry, an unknown field, a field named
twice (also through an alias) or a non-finite value. No native call is made.
write_master_metrics
write_master_metrics(package: Any, values: Mapping[str, Mapping[str, object]], title: str = TITLE, *, native: Any = None) -> MastersCommitted
Write values ({master: {field: value}}) as ONE Undo step.
Return font_history.MastersCommitted: values holds each master's
read-back {field: float}; disclose pending_note with
edit_guards.disclose. native is the fontlab module (default:
the native one). Raise as parse and font_history.commit_masters.