Skip to content

fontlabapp.features.code

code

Host-free suffix pairing and conservative FEA substitution generation.

Import through fly.ap.features.code from scripts. These shared calculations serve the suffix builder, suffix inventory and ligature recipe finder without importing FontLab or Qt. Adapted from Apache-2.0 fontlab-samples; see NOTICE. They generate naming-based source only and never compile or mutate a font.

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
feature_text function (tag: str, pairs: Iterable[tuple[str, str]]) -> str Build a complete substitution block without a trailing newline.
safe_name function (name: str) -> bool Return whether a glyph name can appear unescaped in generated FEA.
suffix_pairs function (names: Iterable[str], suffix: str) -> list[tuple[str, str]] Return unique existing base/alternate pairs in alternate-name order.