Skip to content

fontlabapp.core.scripting · declarations 002

Back to fontlabapp.core.scripting

inspectors_api

inspectors_api() -> Any

Load shared read-only metrics and raw contour calculations lazily.

inspectors_dialog_type

inspectors_dialog_type() -> type[Any]

Load the inspector extension of the existing owned Masters shell lazily.

inspectors_snapshot_refresh

inspectors_snapshot_refresh(method: Any) -> Any

Reuse complete ordered master-domain scans and failed-read invalidation.

inspectors_view_types

inspectors_view_types() -> Any

Load complete original spacing/contour painters only inside the host.

interpolation_api

interpolation_api() -> Any

Load original node blending and lazy native path calculations.

interpolation_view_type

interpolation_view_type() -> type[Any]

Load the full original endpoint/mix painter only inside FontLab.

kerning_class_lists

kerning_class_lists(package: Any, master: str) -> tuple[dict, dict, dict]

Index class members by allowed left/right side, preserving native order.

kerning_classes

kerning_classes(package: Any, master: str) -> dict[str, tuple[list[str], str]]

Return complete native class members and their pair-side roles.

kerning_dialog_type

kerning_dialog_type() -> type[Any]

Load the five read-only kerning panels' shared shell lazily (App 0.2.7).

kerning_edit_dialog_type

kerning_edit_dialog_type() -> type[Any]

Load the snapshot-bound editor shell only when a native tool needs it.

kerning_editor_api

kerning_editor_api() -> Any

Load shared pure plans and native batch access for menu editors (App0.2.8).

kerning_editor_apply

kerning_editor_apply(method: Any) -> Any

Require the exact preview snapshot before any menu-editor mutation.

kerning_editor_make_table

kerning_editor_make_table(headers: list[str]) -> Any

Build shared editor preview tables with the original native sizing.

kerning_editor_refresh

kerning_editor_refresh(method: Any) -> Any

Bind complete kerning previews, with disabled actions on failed reads.

kerning_layout

kerning_layout(package: Any, names: list[str], master: str, kerned: bool = True) -> list[tuple[str, float, float, float]]

Place actual glyph advances and effective kerning without changing master.

kerning_pair_value

kerning_pair_value(kerning: Any, left: str, right: str) -> float

Use FontLab's effective glyph/class precedence; propagate read failures.

Native pyfontgate/fgkerning.cxx get(names) calls getKerningValue, whereas items() reads explicit pairs. None means absent; an explicit zero is kept.

kerning_pairs

kerning_pairs(package: Any, master: str, *, typed: bool = False) -> dict

Read explicit pairs; typed sides preserve literal @ glyph identifiers.

The default retains legacy string keys for existing callers. Literal leading-@ glyph names cannot be encoded by that API and fail before a misleading view escapes; typed=True retains every identifier and mode.

kerning_persistence_api

kerning_persistence_api() -> Any

Load exact-pair audit snapshots without importing the native host.

kerning_persistence_dialog_type

kerning_persistence_dialog_type() -> type[Any]

Load the nonmodal persistence audit only when its menu is invoked.

kerning_proof_api

kerning_proof_api() -> Any

Load the four bundled kerning proof texts and their new-tab opener.

kerning_proof_geometry

kerning_proof_geometry(rows: list, bounds: dict, width: float, height: float, scale: float, ascender: float, descender: float, labels: bool) -> tuple[float, list]

Wrap and fit complete ink, overhangs and labels without omitting glyphs.

Bounds are (left, bottom, right, top) in font coordinates. Requested size is an upper limit: shrink the whole proof when a tall/multi-line specimen otherwise exceeds its canvas. Return local padded pen/baseline positions.

kerning_selection_api

kerning_selection_api() -> Any

Load forthcoming App 0.2.9 selected-exception/text plans without native UI.

kerning_snapshot_refresh

kerning_snapshot_refresh(method: Any) -> Any

Publish complete kerning scans only; invalidate failed native reads.

kerning_tool_backends

kerning_tool_backends() -> Any

Load the kerning backends Kerning Browser and Kerning Batch reuse, as one namespace.

edit (value plans: round, scale, small pairs, copy), selection (exception finder), cutoff (the inclusive -250..100 clamp plan), batch (snapshots, ensure_snapshot, validate_pair) and reports (the owned JSON report window). Nothing native loads until a backend function runs. Used by fontlabapp.studios.kerning_browser and fontlabapp.studios.kerning_batch.

layer_manager_backends

layer_manager_backends() -> Any

Load the layer backends the Layer Manager app reuses, as one namespace.

contour_copy (contours.copy: shape clones and repairs), outlines (contours.writer: the outline Editor and apply_work), layers (masters.layers.writer: settle, Editor), anchors (anchors.writer), selection (masters.layers.selection: the captured layer selection), masters (masters.inspect.model: associated masters and the backup naming rules), catalog (glyphs.catalog.model), creation (glyphs.creation), copies (glyphs.copies), guards (core.edit_guards), scripting (this module: the current package and the Font-window selection the cross-font originals read) and fontlab (FontLab's native module, loaded on first attribute access). The originals' App helpers are reused unchanged. Used by fontlabapp.studios.layer_manager.

layer_selection_api

layer_selection_api() -> Any

Load the ordered selected-layer capture used by the context proofs.

mark_attachment_backends

mark_attachment_backends() -> Any

Load the backends the Mark Attachment app reuses, as one namespace.

inspect (the Mark Attachment Preview anchor model), components (the component writer of Align By Anchor), anchors (the anchor writer of the cursive tools), selection (ordered selected-layer capture), masters (associated_master) and history (auto-glyph facts). Nothing native loads until a backend function runs. Used by fontlabapp.studios.mark_attachment.

master_angles_api

master_angles_api() -> Any

Load staged master-angle reads and the single-container native writer lazily.

master_angles_dialog_type

master_angles_dialog_type() -> type[Any]

Load the complete italic-angle controls only when a menu is launched.

master_angles_view_types

master_angles_view_types() -> Any

Load the original slanted-stem gauge and native spin readability helpers.

master_switcher_api

master_switcher_api() -> Any

Load compact master-button calculations without eager host imports.

master_switcher_dialog_type

master_switcher_dialog_type() -> type[Any]

Reuse the owned Masters shell with exact master-button source guards.

masters_api

masters_api() -> Any

Load shared read-only master calculations without importing native UI.

masters_dialog_type

masters_dialog_type() -> type[Any]

Reuse the owned Proof/Names panel for complete original Masters menus.

masters_fill_table

masters_fill_table(table: Any, rows: list, highlight: Any = None) -> None

Render original master cells, notes and differing-value highlights.

masters_make_table

masters_make_table(headers: list[str], min_height: int = 280) -> Any

Create the original read-only table beside the master report or chart.

masters_snapshot_refresh

masters_snapshot_refresh(method: Any) -> Any

Publish complete master report scans; refuse stale native actions.

masters_view_types

masters_view_types() -> Any

Load the actual original line and bar charts only inside FontLab.

names_dialog_type

names_dialog_type() -> type[Any]

Load the shared inspection/selection Names panel inside FontLab only.

names_font_glyphs

names_font_glyphs() -> list[tuple[str, list[int]]]

Read names and encodings in current font order without changing masters.