fontlabapp.studios.layer_manager.twins
twins
Twins tab: the Scriptmix "Master Twins" (Scripts/Masters/).
Copy the chosen content kinds (contours, components, anchors, metrics)
of the selected glyphs, or all glyphs, from one master layer to another.
The planning, component-graph check and CopyContent editor are the
original's, verbatim: refused pairs are listed as "kept: retain). Copy plans
again, refuses a plan that differs from the list, and writes every target
layer as ONE Layer Manager: copy twins <subject> Undo step through
AppShell.history (prepare before history, write and settle inside,
read back after), as contours.writer.apply_work did.
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 |
|---|---|---|---|
KEY |
attribute | ||
METRICS |
attribute | (shared captured text) | |
TITLE |
attribute | ||
anchor_edits |
function | (source: Any, target: Any) -> list[tuple[str, str, Any]] |
Plan a full anchor replacement through the public anchor writer. |
anchors |
attribute | (shared captured text) | |
catalog |
attribute | ||
check_component_graph |
function | (package: Any, work: list[Any], master: str, roots: list[str]) -> None |
Refuse any component cycle reachable after the planned replacement. |
contour_copy |
attribute | (shared captured text) | |
copy_work |
function | (package: Any, names: list[str], source: str, target: str, content: Content, facts: Any, kept: list[tuple[str… |
Check every pair before history. |
editor_type |
function | () -> type |
Use the shared geometry and anchor kernels for one history action. |
layer_problem |
function | (layer: Any, outlines: bool=True) -> str |
Explain why a body layer is not a supported copy source or target. |
outlines |
attribute | (shared captured text) | |
selection |
attribute | (shared captured text) | |
shape_copy |
function | (shape: Any, master: str) -> Any |
Copy names, note and transform; shared helper restores node names/flags. |
shape_problem |
function | (shape: Any) -> str |
Refuse shared data and known contour/node fields outside the copy contract. |