Skip to content

fontlabapp.studios.proof_studio.session

session

Proof Studio state: selection and font facts, generation, preview, copy, open and actions.

What: Studio turns the chosen generator, choice, seed and field values into a Proof, previews a part through TMetrics (set_view for size and kerning, set_layer for the master, then set_text), hands the exact part text to a clipboard callable, draws Waterfall and By master stacks in the absorbed panels' own views (paint), opens the FontLab Glyph tab(s) through the generator and runs generator actions. Every preview sets size, layer and kerning, so one tab's settings never leak into another's. Read-only for font data: it never edits the font, never calls history and reads the selection or font facts only when the generator uses them. Its only writes are a generator's own settings namespace. Qt-free. Used by fontlabapp.studios.proof_studio (app and tabs).

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
APP attribute (shared captured text)
ERRORS attribute
SELECTION_SECONDS attribute
font_facts function () -> Facts | None The current font's first-encoded character map, glyph names and masters; None with no font.
paint_canvas function (view: Any, package: Any, canvas: tuple[Any, ...]) -> str Feed a WaterfallView <code>(names, sizes, master)</code><code> or MasterRows </code><code>(names, size)</code> as the originals.
selected_names function () -> tuple[str, ...] Ordered selected glyph names (Font window selection or Glyph window occurrences, repeats kept).