Skip to content

fontlabapp.kerning.identity

identity

Keep PyGate explicit kerning side identifiers and modes lossless.

PyGate fgkerning.cxx items/set/remove retain (identifier, mode) sides. Legacy @notation cannot express a glyph whose literal name starts with @; typed reads and writes support that complete domain without changing existing string keys.

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
Edits attribute (shared captured text)
Mode attribute
NativeSide attribute
Pair attribute
Pairs attribute (shared captured text)
Side attribute
native_side function (side: Side) -> NativeSide Decode legacy @notation or validate an explicit native side unchanged.
pair_key function (pair: Pair, *, typed: bool) -> Pair Canonicalize either public input form to the snapshot's representation.
read_pairs function (package: Any, master: str, *, typed: bool=False) -> dict[Pair, float] Read every explicit pair; refuse lossy legacy encoding before returning it.