Skip to content

fontlabapp.studios.component_studio.build

build

Build tab (Build From Recipes, with Dump Component Recipes as "Dump from selection").

The original's rules are kept unchanged (Line, Result, parse, data_tool, build, check_lines): one recipe per line, target = base + mark@anchor (@acute without brackets names both anchors, @acute[_acute]); # starts a comment. Check runs FontLab's own builder (build_glyph) as a dry run on every line and master; it does not run on open, because the builder can refresh glyph data. A line with NUL, no-break space or line/paragraph separators is refused; a target that owns auto layers or is a base of an auto composite is refused (no opt-in, as in the original). "Masters": current master (default) or all; "Replace existing layers" is off by default. Build is enabled only after Check with every row ready; any change asks for Check again.

Build keeps the original's builder route. The empty master layers the builds need are added first as ONE Component Studio: add master layers <subject> Undo step through AppShell.history. Each layer is then built by FontLab's build_glyph data tool with auto_layer=False, as in the original; that tool records its own history, so AppShell.history cannot wrap it and the builder's Undo is FontLab's (native history is qualified in T29). A new glyph is built on its first master; press Build again for the others.

"Dump from selection" (Dump Component Recipes) only reads: it captures the selected Font/Glyph-window layers and shows their base+base=glyph recipes verbatim in a read-only box (copy it from there); it writes nothing and opens no history. The dump format is the original's and is not the Build syntax, so it is never pasted into the recipe editor.

Classes

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
ATTACH attribute
EXAMPLE attribute
GLYPH_NAME attribute
LAYER_MISSING attribute
UNSAFE_TEXT attribute
build function (package: Any, line: Line, master: str, replace: bool, dry_run: bool) -> tuple[bool, str] Build (or only validate) one target layer.
check_lines function (package: Any, lines: list[Line], masters: list[str], replace: bool, facts: history.AutoFacts) -> list[Result] Dry-run every line on every master.
component_writer attribute
data_tool function (tool: str, **arguments: Any) -> Any Call one of FontLab's own data tools in-process (fly.pr is native fontpr).
dump_text function () -> tuple[str, str] (recipes, summary) of the selected layers; the Dump Component Recipes report.
parse function (text: str) -> list[Line] Non-empty lines as Line records. '#' starts a comment.
pr attribute
recipes_model attribute