Skip to content

fontlabapp.studios.spacing_studio.session.Studio

Studio

Shared state of one Spacing 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, selection: Callable[[], list[str]] | None=None, us…
apply function (self, action: str, planner: model.Planner, names: Sequence[str] | None=None, *, all_masters: bool=False, mas… Plan, then write every changed layer as one <code>&quot;Spacing Studio: &lt;action&gt; &lt;subject&gt;&quot;</code> step.
choose_master function (self, name: str | None) -> None Show <code>name</code> in the preview and make it the master that writes and reads use.
comparison function (self, which: str, reference: tuple[str, str] | None, mode: str, names: Sequence[str] | None=None, *, all_mas… Layer Metric Comparison: (glyph, master, value, against reference); reads only.
font function (self) -> Any (shared captured text)
italic_defaults function (self) -> tuple[float, int] The font's italic angle and half its x-height (the de-slant pivot).
italic_planner function (angle: float, pivot: float, mode: str, lsb: float | None, rsb: float | None) -> model.Planner
layer function (self, name: str, master: str) -> Any The live layer of <code>name</code><code> on </code><code>master</code>, or None. (shared captured text)
metrics function (self, name: str, master: str) -> Metrics | None
names_in function (self, text: str) -> list[str] Glyph names in preview text: <code>/name</code> tokens and characters through the font's cmap.
native_glyph function (self, name: str) -> Any (shared captured text)
offset_preview function (self, offset: int, names: Sequence[str] | None=None) -> list[tuple[str, str, str, str]] Sidebearing Offset Preview on the preview master; reads only.
package function (self) -> Any (shared captured text)
plan function (self, planner: model.Planner, names: Sequence[str] | None=None, *, all_masters: bool=False, masters: Sequenc… Plan <code>planner(name, before, layer, master)</code> for each glyph layer; skipped layers carry a note.
reference_planner function (self, reference: str, mode: str, offset: int) -> model.Planner Copy Metrics From Reference: each master copies the reference glyph's layer of that master.
reload function (self, *, preserve: bool=False) -> None Read the captured font; preserving refresh never retargets controls.
remove_hints function (self, names: Sequence[str] | None=None, *, all_masters: bool=False) -> int Remove PostScript hints from the chosen layers: one <code>&quot;Spacing Studio: remove hints &lt;glyph&gt;&quot;</code> step each.
say function (self, text: str) -> None (shared captured text)
set_glyphs function (self, names: Sequence[str]) -> None (shared captured text)
shell_status function (self) -> str (shared captured text)
string_rows function (self, text: str) -> list[tuple[str, str, str, str]] Spacing String Preview numbers: (glyph, LSB, RSB, advance) on the preview master; reads only.
sync_planner function (self, reference_master: str, proportional: bool) -> model.Planner Sync Sidebearings: each layer follows its glyph's layer in <code>reference&#95;master</code>.
sync_targets function (self, reference_master: str, all_masters: bool) -> list[str]
targets function (self, all_masters: bool) -> list[str] (shared captured text)
use_selection function (self) -> list[str] Take the Font window selection (else the current glyph) as the glyph list.