fontlabapp.studios.kerning_studio.session.Studio · declarations 001
Back to fontlabapp.studios.kerning_studio.session.Studio
__init__
__init__(shell: Any, *, font: Callable[[], Any] | None = None) -> None
apply_steal
apply_steal(glyphs: Sequence[str], height: float) -> bool
choose_master
choose_master(name: str | None) -> None
Show name in the preview and make it the write target.
cmap
cmap(font: Any) -> dict[int, str]
delete
delete(pairs: Sequence[tuple[str, str]]) -> bool
Delete each pair's class record (glyph record if no class) on every master, one Undo step.
Exceptions (more specific records) stay and are named in the status line.
glyph
glyph(master: str, name: str) -> Any
The Fontport glyph name on master (advance and outline source).
kern_to_max
kern_to_max(left: str, right: str) -> bool
native_key
A model key (public.kern1.X) as the native @class pair of master.
nudge
nudge(left: str, right: str, step: float) -> bool
order
order(font: Any) -> list[str]
reload
reload(*, preserve: bool = False) -> bool
Re-read without writes; history refresh retains the chosen master and drafts.
say
say(text: str) -> None
Show text in the shell status line and keep it for follow-up notes.
set_grid
set_grid(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
set_pair(left: str, right: str, value: float) -> bool
set_pairs
set_pairs(action: str, subject: str, values: Sequence[tuple[str, str, float]]) -> bool
Set each (left, right, value) on the selected master: the most specific record, else the class one.
steal
steal(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
value(master: str, left: str, right: str) -> tuple[float, Pair | None]
Effective value of a pair on a natively read master.
write
write(action: str, subject: str, plan: Callable[[], Edits]) -> bool
Write plan() ({master: {key: value or None}}) as one Undo step.