Skip to content

fontlabapp.studios.transform_studio.session

session

Studio state shared by Transform Studio and Align & Nudge: reads, plans, ghost and one-step writes.

What: Studio keeps the glyph list, the preview master and the last plan. plan reads each named glyph's explicit layer on the chosen masters (flGlyph.findLayer; never fgGlyph), snapshots it with native.snapshot and runs planner(name, master, snapshot). Missing, auto, planner-noted and hinted layers are skipped with a note; hinted layers are written only when the user ticks "Edit hinted layers anyway" or runs "Remove PostScript hints" (fontui.remove_hints). ghost simulates the plan for the preview glyph and draws it with preview.set_overlay. apply writes every pending layer through AppShell.history as one "<App>: <action> <subject>" Undo step on those explicit layers, then reads every layer back with geometry.verify; a difference is reported as "Partly applied", never as success. Why: Contract §1.3/§1.4. Read-only paths (plan, ghost) never open history. APP is a class attribute so fontlabapp.studios.align_nudge reuses this class with its own name and labels.

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
AUTO_NOTE attribute (shared captured text)
ERRORS attribute
HINT_NOTE attribute
MISSING_NOTE attribute (shared captured text)
NO_FONT attribute (shared captured text)
NO_GLYPHS attribute (shared captured text)
Planner attribute
ROUNDING_NOTE attribute (shared captured text)