fontlabapp.kerning.selection
selection
Plan selected exception deletions and explicit pairs from typed text.
Adapted from the Apache-2.0 fontlab-samples tools. Keep first class membership, right-class before left-class exception precedence and original slash-token parsing. Native effective reads use scripting; all writes use kerning_batch.
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 |
|---|---|---|---|
ExceptionRow |
attribute | ||
Values |
attribute | ||
adjacent_pairs |
function | (words: Iterable[list[str]]) -> list[Pair] |
Keep unique adjacent pairs inside words in first reading order. |
class_maps |
function | (package: Any, master: str) -> tuple[dict[str, str], dict[str, str]] |
Map glyphs to their first native class on each permitted side. |
current_value |
function | (kerning: Any, explicit: Mapping[Pair, float], pair: Pair) -> tuple[float, bool] |
Mark explicit glyph pairs; otherwise read native effective kerning or absent zero. |
exception_plan |
function | (rows: Iterable[ExceptionRow]) -> Edits |
Delete exactly selected exceptions, including manually selected overrides. |
exceptions |
function | (pairs: Mapping[Pair, float], left_classes: Mapping[str, str], right_classes: Mapping[str, str]) -> list[tupl… |
Find the first explicit broader pair, including zero-valued class pairs. |
explicit_pairs |
function | (package: Any, master: str) -> dict[Pair, float] |
Read only explicit glyph/glyph pairs, preserving zero presence. |
find |
function | (package: Any, masters: list[str]) -> list[ExceptionRow] |
Return ordered master/pair/value/broader/value rows, never changing master. |
parse_words |
function | (text: str, package: Any) -> list[list[str]] |
Resolve characters and slash-delimited glyph names within whitespace words. |
text_plan |
function | (masters: list[str], ticked: list[Pair], values: Values, mode: str, value: float) -> Edits |
Set or add from displayed effective values, writing only ticked glyph pairs. |
text_values |
function | (package: Any, masters: list[str], pairs: list[Pair]) -> Values |
Read the complete preview before publishing any ticked write action. |