fontlabapp.studios.layer_manager._restore · declarations 001
Back to fontlabapp.studios.layer_manager._restore
KEY
module-attribute
KEY
Move
module-attribute
Move
NO_BACKUP
module-attribute
NO_BACKUP
TITLE
module-attribute
TITLE
backup_names
backup_names(glyphs: Sequence[Any], masters: Sequence[str]) -> list[str]
Return the sorted unique backup layer names of glyphs.
clone_shape
clone_shape(shape: Any) -> Any
Return a repaired clone of shape. Raise RuntimeError on a lost contour.
contours_in
contours_in(layer: Any) -> int
Return the number of contours in the non-component shapes of layer.
has_metrics_link
has_metrics_link(layer: Any) -> bool
True when a sidebearing or the width holds a link or an expression.
outline_shapes
outline_shapes(layer: Any) -> list[Any]
Return the non-component shapes of layer that hold contours.
plan_anchors
plan_anchors(source: Any, target: Any) -> tuple[tuple[Move, ...], tuple[str, ...], str]
Return (moves, missing names, problem) for same-named anchors.
qt
module-attribute
qt
replace_outline
replace_outline(source: Any, target: Any) -> None
Remove the non-component shapes of target; add clones of the source outline.
restore
Restore the planned jobs as ONE Undo step; optionally delete the backups (the original's restore).
The original's plan of deletions, retained component history, mutate
and read-back, verbatim; the step goes through tool.shell.history
titled title (None when refused).
survey
survey(package: Any, names: Sequence[str], chosen: str, facts: Any) -> list[Job]
Plan the restore of backup chosen for every glyph in names. Change nothing.