fontlab_fontport.native_kerning · declarations 001
Back to fontlab_fontport.native_kerning
read_kerning
read_kerning(package: Any, master: str | None = None) -> dict[Pair, int | float]
Read explicit presence from items(), preserving zero and fractions.
master selects flPackage.kerning(master); None is the current master.
target_master
target_master(package: Any) -> str | None
Name font-level kerning's master: the default master, never the UI's current one.
write_kerning
write_kerning(package: Any, values: Mapping, undo_name: str) -> None
Replace explicit pairs after complete preflight, with first Undo/Redo.
Native setters and history round fractions, so edits requiring fractional history are refused before mutation. Zero entries are seeded nonzero then scaled to zero; all nonzero pairs are restored inside the same checkpoint. The before/after history protocol adds an extra no-op history row.