Skip to content

fontlabapp.studios.kerning_batch.copy_masters

copy_masters

Kerning Batch Copy masters tab: Scriptmix Copy Between Masters ("Copy Kerning Between Masters").

What: copy one master's explicit pairs (From, default the current master) to the ticked target masters, optionally scaled (0–400 %, one decimal, default 100 %, halves away from zero), in one of three modes: Replace all pairs (target pairs absent from the source are deleted), Add missing pairs only, or Overwrite matching pairs, keep others. The plan is the shared kerning.edit.model.copy_plan/summary, unchanged; explicit zero and absence stay distinct. The confirmation is the original's: the "To masters" table shows each target's Pairs now, Added, Changed and Removed counts, and Copy is enabled only when a target is ticked and the plan changes something; there is no modal box (the original had none). Copy writes exactly the displayed plan as one Kerning Batch: Copy kerning from <source> to <targets> Undo step. 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
MODES attribute
TITLE attribute
copy_edits function (edit: Any, pairs: dict, source: str, targets: list[str], mode: str, percent: float) -> dict <code>{target: {pair: value or None}}</code> for each ticked target, from one snapshot's pairs.