Skip to content

fontlabapp.kerning.selection · declarations 001

Back to fontlabapp.kerning.selection

ExceptionRow module-attribute

ExceptionRow

Values module-attribute

Values

adjacent_pairs

adjacent_pairs(words: Iterable[list[str]]) -> list[Pair]

Keep unique adjacent pairs inside words in first reading order.

class_maps

class_maps(package: Any, master: str) -> tuple[dict[str, str], dict[str, str]]

Map glyphs to their first native class on each permitted side.

current_value

current_value(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

exception_plan(rows: Iterable[ExceptionRow]) -> Edits

Delete exactly selected exceptions, including manually selected overrides.

exceptions

exceptions(pairs: Mapping[Pair, float], left_classes: Mapping[str, str], right_classes: Mapping[str, str]) -> list[tuple[Pair, float, Pair, float]]

Find the first explicit broader pair, including zero-valued class pairs.

explicit_pairs

explicit_pairs(package: Any, master: str) -> dict[Pair, float]

Read only explicit glyph/glyph pairs, preserving zero presence.

find

find(package: Any, masters: list[str]) -> list[ExceptionRow]

Return ordered master/pair/value/broader/value rows, never changing master.

parse_words

parse_words(text: str, package: Any) -> list[list[str]]

Resolve characters and slash-delimited glyph names within whitespace words.

Unknown characters/tokens are skipped, so known neighbors remain adjacent. A slash token consumes the rest of its chunk up to the next slash.

text_plan

text_plan(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

text_values(package: Any, masters: list[str], pairs: list[Pair]) -> Values

Read the complete preview before publishing any ticked write action.