Skip to content

fontlab_glyport.model.compound_position · declarations 001

Back to fontlab_glyport.model.compound_position

POSITION_SUFFIXES module-attribute

POSITION_SUFFIXES

apply_positions

apply_positions(components: list[SimpleNamespace], position: Literal['init', 'medi', 'fina'] | None, lookup: Callable[[str], SimpleNamespace | None], connection_type: Callable[[str], str]) -> None

Mutate ordered records using raw alternates and an injected name classifier.

Mirrors applyPositionalSuffixes:suffix:force: at 000c512c. The retained body has no force-dependent branch. Empty input safely does nothing here; this does not qualify the native body's pre-loop empty-array access.

positional_alternate

positional_alternate(name: str, lookup: Callable[[str], SimpleNamespace | None]) -> SimpleNamespace | None

Copy a component recipe only when its first raw component alternate exists.