fontlabapp.studios.kerning_batch.clamp
clamp
Kerning Batch Clamp tab: Scriptmix Kerning Cutoff ("Kerning Cutoff").
What: clamp every master's explicit kerning to the inclusive range -250 to
100 (kerning.cutoff.LOWER/UPPER). As in the original there are no
options and no current-master subset: all masters, glyph pairs, class pairs
and both mixed exception kinds keep their typed identities, values on a
limit stay, existing zero stays, and an absent pair is never added. The plan
is the shared kerning.cutoff.plan, unchanged, on a typed snapshot. The
original ran immediately; here the table lists every clamped pair first and
Apply writes exactly that set as one Kerning Batch: Clamp kerning on
<masters> Undo step, then reports each master's count as the original
printed it.
Independent implementation of Science Gothic SG-Font-Kerning-Cutoff.py v1.1,
Vassil Kateliev and Karandash Type Foundry (2025). Its source has no declared
licence; no original body is copied.
Used by fontlabapp.studios.kerning_batch (tab builder).
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 |
|---|---|---|---|
TITLE |
attribute | (shared captured text) | |
clamp_rows |
function | (snapshot: Any, edits: dict) -> list[tuple] |
Table rows <code>(pair, master, (master, value, new value))</code> for each clamped pair. |