Skip to content

fontlabapp.studios.kerning_studio.session.Studio

Studio

Shared state of one Kerning Studio window; 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, *, font: Callable[[], Any] | None=None) -> None
apply_steal function (self, glyphs: Sequence[str], height: float) -> bool
choose_master function (self, name: str | None) -> None Show <code>name</code> in the preview and make it the write target.
cmap function (self, font: Any) -> dict[int, str]
delete function (self, pairs: Sequence[tuple[str, str]]) -> bool Delete each pair's class record (glyph record if no class) on every master, one Undo step.
font function (self) -> Any (shared captured text)
glyph function (self, master: str, name: str) -> Any The Fontport glyph <code>name</code><code> on </code><code>master</code> (advance and outline source).
kern_to_max function (self, left: str, right: str) -> bool
native_key function (self, master: str, key: Pair) -> Pair A model key (<code>public.kern1.X</code><code>) as the native </code><code>@class</code><code> pair of </code><code>master</code>.
nudge function (self, left: str, right: str, step: float) -> bool
order function (self, font: Any) -> list[str]
reload function (self, *, preserve: bool=False) -> bool Re-read without writes; history refresh retains the chosen master and drafts.
say function (self, text: str) -> None Show <code>text</code> in the shell status line and keep it for follow-up notes.
set_grid function (self, left: str, right: str, values: Mapping[str, float | None]) -> bool Pair Editor grid: write each master's cell (None deletes that master's record), one Undo step.
set_pair function (self, left: str, right: str, value: float) -> bool
set_pairs function (self, action: str, subject: str, values: Sequence[tuple[str, str, float]]) -> bool Set each <code>(left, right, value)</code> on the selected master: the most specific record, else the class one.
steal function (self, glyphs: Sequence[str], height: float) -> tuple[int, float, float] Measure the Steal value for pair 1 (glyphs 0-1) from pair 2 (glyphs 2-3) on the selected master.
value function (self, master: str, left: str, right: str) -> tuple[float, Pair | None] Effective value of a pair on a natively read master.
write function (self, action: str, subject: str, plan: Callable[[], Edits]) -> bool Write <code>plan()</code><code> (</code><code>{master: {key: value or None}}</code>) as one Undo step.