Skip to content

fontlabapp.studios.shape_generators.app.Tool

fontlabapp.studios.shape_generators.app.Tool

One Kerning Browser or Kerning Batch window's shared state; tabs subscribe with views.

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
__init__ function (self, shell: Any, app: str, *, font: Callable[[], Any] | None=None, backends: Callable[[], Any]=kerning_tool…
backends function (self) -> Any
font function (self) -> Any
reload function (self) -> None Re-read the current package and its masters (no writes), then refresh every view.
say function (self, text: str) -> None Show <code>text</code> in the shell status line.
scope function (self, all_masters: bool) -> list[str] The current master alone, or every master.
select function (self, names: Iterable[str]) -> int Select <code>names</code> in the Font window of this tool's package; return how many.
selected_names function (self) -> list[str] Font-window selection, unique, in selection order.
show_pair function (self, left: str, right: str, master: str | None=None) -> None Preview a pair on <code>master</code><code>; a </code><code>@class</code> side shows its first member.
write function (self, action: str, subject: str, edits: dict, expected: Any) -> bool Write <code>edits</code><code> (</code><code>{master: {pair: value or None}}</code>) as one Undo step; refusals go to the status line.