fontlabapp.studios.kerning_browser.energy
energy
Kerning Browser Energy tab: Scriptmix Kerning Energy Report.
What: for the glyphs selected in the Font window, on the current master,
the sum of squared effective pair values ("energy") and independent
row/column means as left/right sidebearing suggestions. Pairs resolve on a
typed snapshot; explicit zero exceptions win; ambiguous pairs are named and
kept out of totals (at most 200 details). "Use selection" re-reads the
selection; "Open report" shows the full JSON in the shared read-only report
window, as the original did. Read-only: no font edits, no history.
side_index, effective, energy and analyze are the original bodies.
Used by fontlabapp.studios.kerning_browser (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 |
|---|---|---|---|
DETAIL_LIMIT |
attribute | ||
KEY |
attribute | ||
TITLE |
attribute | ||
analyze |
function | (names: list[str], pairs: dict, groups: dict) -> dict |
Accumulate totals without storing a square matrix; keep only bad pairs. |
delta |
function | (value: float | None) -> str |
|
effective |
function | (left: str, right: str, pairs: dict, groups: dict, *, index: tuple | None=None) -> float |
Resolve one pair; an explicit glyph pair needs no class disambiguation. |
energy |
function | (matrix: Sequence[Sequence[float]]) -> float |
Return the sum of squared effective values in font units squared. |
report |
function | (package: Any, master: str, names: list[str]) -> dict |
The original <code>run</code> result: analyse one typed snapshot, refuse it if it went stale, add the master. |
side_index |
function | (groups: dict) -> tuple[dict, dict] |
Index membership by glyph and pair side once per captured master. |