fontlabapp.studios._kerning
_kerning
Shared state of Kerning Browser and Kerning Batch: package, masters, preview and the one writer.
What: Tool holds one shell's current package, its masters and the
current master (package.master, as the Scriptmix scripts read it), the
TMetrics preview and the kerning backends (core.scripting.kerning_tool_backends).
reload re-reads the package and re-runs every tab's view; show_pair
previews one pair on its master; write is the only write path: one
fontlabapp.fontui.write_kerning call with expected= the snapshot the
plan was built from, one "<App>: <action> <subject>" Undo step
(Issue 235 §1.3/§1.4). Only changed masters are range-checked by the writer.
Tabs never call notify or fgGlyph. Qt-free.
Used by fontlabapp.studios.kerning_browser and fontlabapp.studios.kerning_batch.
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 |
|---|---|---|---|
ERRORS |
attribute | ||
NO_FONT |
attribute | ||
counts |
function | (per_master: dict[str, int]) -> str |
<code>"Regular 3 · Bold 0"</code>: every master of the plan with its count, as the originals printed it. |
pair_text |
function | (left: str, right: str) -> str |
<code>"A V"</code>: the two sides with two spaces, as the Scriptmix tables showed them. |
side_name |
function | (side: Any) -> str |
A legacy <code>"@class"</code><code>/glyph string, or a typed </code><code>(name, mode)</code> side, as text. |