Skip to content

fontlabapp.studios.component_studio.locks · declarations 001

Back to fontlabapp.studios.component_studio.locks

Entries module-attribute

Entries

data_tool

data_tool(tool: str, **arguments: Any) -> Any

Call one of FontLab's own data tools in-process (fly.pr is native fontpr).

An error answer becomes RuntimeError with FontLab's text.

element_name

element_name(element: Any) -> str

Base glyph name of a component element, '' for any other element.

explicit_locks

explicit_locks(package: Any, name: str) -> dict[str, Entries]

{layer name: element entries} from FontLab's stored glyph data.

lock_changes

lock_changes(glyph: Any, layer: Any, entries: Entries | None, locked: bool) -> list[Change]

One row per component: state now and after the action.

lock_states

lock_states(layer: Any, entries: Entries | None) -> list[bool | None]

Own lock flag per layer shape; all None when data and shapes differ.

The data counts only when it has one element per shape, components at the same positions, with the same base names.

word

word(state: bool | None) -> str

'locked', 'unlocked' or 'unknown'.