Skip to content

fontlabapp.contours.selection.panel.ui.CopiesPanel

CopiesPanel

Panel of the scripts that create glyph copies: source, new glyph, action.

Subclasses set TITLE, KEY and NOUN and fill in build_controls(), survey(package, facts, allow_rebuild) and jobs(rows). Every master gets a copy, so there is no master scope. The consent tick lets a new glyph through that can make FontLab rebuild automatic glyphs (glyph_creation.REBUILD_LABEL); Use selection clears it.

Source bases

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
ACTION attribute
ALIGN attribute
CONSENT attribute
HEADERS attribute
SCOPE attribute
TABLE_HEIGHT attribute
WIDTH attribute
cells function (self, row: Any) -> list[str] Source, new glyph, and the note or "create on N masters" (with the rebuild note).
jobs function (self, rows: list[Any]) -> list[glyph_copies.Job] Subclass hook: return the jobs (copied contours and widths) of the ready rows.
pending function (self, todo: Sequence[Any]) -> str Status before Create: N glyphs to create.
plan_rows function (self, package: Any, masters: list[str]) -> list[Any] Plan with the public facts snapshot and the consent tick.
result_text function (self, result: dict[str, Any]) -> str Status after Create: Created N glyphs (M master layers), or Nothing to create.
survey function (self, package: Any, facts: history.AutoFacts, allow_rebuild: bool) -> list[Any] Subclass hook: plan one <code>glyph&#95;copies.Row</code> per selected name.
write function (self, package: Any, rows: list[Any]) -> dict[str, Any] Create glyphs with the facts that apply() scanned just before planning.