Skip to content

fontlabapp.studios.layer_manager.intermediate · declarations 001

Back to fontlabapp.studios.layer_manager.intermediate

KEY module-attribute

KEY

TITLE module-attribute

TITLE

keep_reason

keep_reason(package: Any, glyph: Any, name: str, values: dict[str, float], facts: AutoFacts) -> str

Keep unsafe, duplicate or incompatible glyphs; the other glyphs still write.

location_values

location_values(package: Any, values: dict[str, float]) -> tuple[dict[str, float], str]

Validate declared design coordinates and encode FontLab's layer-name form.

position_matches

position_matches(position: Any, values: dict[str, float]) -> bool

Subscript only; a missing key reads as None. Layer names lower-case keys.

survey

survey(package: Any, names: list[str], values: dict[str, float], facts: AutoFacts) -> list[IntermediateRow]

One row per selected glyph, with all refusals visible before writing.

write_rows

write_rows(tool: Any, package: Any, rows: list[IntermediateRow], facts: AutoFacts, title: str = TITLE) -> dict[str, Any] | None

Interpolate and append in one history action; retain partial additions on error (the original's).

The original's checks, interpolation, mutate and read-back, verbatim; the step goes through tool.shell.history titled title with no target layers (None when refused).