fontlabapp.kerning.batch
batch
Preflight native @class edits across masters, then checkpoint one whole batch.
Reuse Fontport's measured zero-seed/scale and before/after history protocol, at all-master native notation rather than its key-master UFO model. FontLab source pyfontgate/fgkerning.cxx defines explicit items and (id, mode) setters. The native history protocol may add a no-op checkpoint; first Undo/Redo must restore the entire batch. No glyph or auto-layer notifications are issued.
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
MODES |
attribute | (shared captured text) | |
ensure_snapshot |
function | (package: Any, expected: KerningSnapshot) -> KerningSnapshot |
Reject any pair/class/master change since the displayed complete scan. |
snapshot_kerning |
function | (package: Any, *, typed: bool=False) -> KerningSnapshot |
Read every named master without changing the active master; refuse stale fonts. |
validate_pair |
function | (package: Any, master: str, pair: Pair, *, groups: Mapping | None=None, members: bool=True) -> tuple |
Require existing glyphs or classes of the correct side/mode before any write. |
write_kerning |
function | (package: Any, edits: Edits, undo_name: str, *, expected: KerningSnapshot | None=None) -> bool |
Apply one fully staged batch; no-op adds no history, partial failures retain Undo. |