Skip to content

fontlabapp.fontui.feature_blocks

feature_blocks

Read and write exact VFJ feature source for the active FontLab font.

Owned by FontLab App. Use these two functions from FontLab scripts and tools that edit feature source.

Import is cheap and host-free: no Qt binding and no fontlab module are loaded until a function runs. NativeFontBackend is also imported at call time. App owns the generic "which package is current" helper; this module calls it through the module object fontlabapp.core.scripting, so one patch point serves every caller.

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
read_feature_blocks function (package: Any) -> dict Read exact ordered VFJ feature source through Fontport and fontpr.
write_feature_blocks function (package: Any, expected: dict, updated: dict, *, references: Iterable[str], undo_name: str) -> dict[str, int] Apply an exact source-bound feature plan with Fontport's history checks.