fontlabapp.studios.kerning_studio.selected_steal
selected_steal
Selected-slot Steal Kerning From Next Pair migrated from the Scriptmix independent Apache-2.0 rewrite.
Original inspiration: Alex Slobzheninov, https://github.com/slobzheninov/Glyphs-Scripts. Preserves selected OR active slot capture and exact typed native writer semantics.
Classes
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 |
|---|---|---|---|
Point |
attribute | (shared captured text) | |
TITLE |
attribute | ||
default_height |
function | (package: Any) -> float |
Use half the shown master's x-height, falling back to the current master. |
extents |
function | (layer: Any, height: float, *, glyph_name: str='', notices: list[str] | None=None) -> tuple[float, float] |
Find the leftmost/rightmost scanline crossings of the decomposed outline. |
kerning |
attribute | (shared captured text) | |
masters |
attribute | ||
plan |
function | (height: float, expected_id: int | None=None) -> dict |
Read four selected slots, their outline gaps and the complete kerning snapshot. |
quadratic_cubics |
function | (points: list[Point]) -> list[Point] |
Elevate quadratic spans, including implied on-curves, before flattening. |
run |
function | (height: float) -> dict |
Measure and apply a live four-slot pair action without opening a panel. |
selection |
attribute | (shared captured text) | |
target_key |
function | (groups: dict, records: dict, left: str, right: str) -> tuple |
Keep the most specific existing exception; otherwise use native side groups. |
write |
function | (preview: dict) -> dict |
Re-measure before writing; refuse stale selection, outlines or kerning. |