Skip to content

fontlabapp.core.scripting · declarations 001

Back to fontlabapp.core.scripting

advance_widths_backends

advance_widths_backends() -> Any

Load the metrics backends the Advance Widths app reuses, as one namespace.

panel (layer survey, shift_and_set, read-back and auto-glyph notes), inspectors (the Width Table progression report), masters (master order and the Width Chart widths), tabular (the read-only Check Tabular Widths capture) and history (auto-glyph facts). Nothing native loads until a backend function runs. Used by fontlabapp.studios.advance_widths.

anchor_copy_api

anchor_copy_api() -> Any

Load complete anchor-copy arithmetic and guarded writes lazily.

anchor_copy_dialog_type

anchor_copy_dialog_type() -> type[Any]

Load the owned anchor-copy shell only inside FontLab.

anchor_copy_snapshot_refresh

anchor_copy_snapshot_refresh(method: Any) -> Any

Bind old source before intentional control changes in the copy panel.

anchor_transfer_backends

anchor_transfer_backends() -> Any

Load the anchor backends the Anchor Transfer app reuses, as one namespace.

writer (plans, refusals, layer steps and read-back), copy (the Copy Anchors from Glyph plan and its dependant refusal), crossfont (model, capture and native of Copy Anchors Between Fonts), catalog (the glyph catalogue of Derive Anchors From Components) and history (auto-glyph facts). Nothing native loads until a backend function runs. Used by fontlabapp.studios.anchor_transfer.

anchors_action

anchors_action(method: Any) -> Any

Guard original anchor selectors, filtering and Font-window selection.

anchors_api

anchors_api() -> Any

Load shared original anchor calculations without importing native Qt.

anchors_coordinate_dialog_type

anchors_coordinate_dialog_type(kind: str) -> type[Any]

Load the complete original coordinate panel only inside FontLab.

anchors_coordinates_api

anchors_coordinates_api() -> Any

Load original coordinate arithmetic and the reviewed point core lazily.

anchors_dialog_type

anchors_dialog_type() -> type[Any]

Load the anchor extension of the owned Proof/Names panel shell lazily.

anchors_snapshot_refresh

anchors_snapshot_refresh(method: Any) -> Any

Publish complete anchor scans only after source/domain checks.

anchors_view_types

anchors_view_types() -> Any

Load the complete original anchor cloud and attachment painters lazily.

angularizzle_dialog_type

angularizzle_dialog_type() -> type[Any]

Load the bound Angularizzle preview session only when its menu runs.

canvas_anchor_rings_api

canvas_anchor_rings_api() -> Any

Load immutable duplicate-anchor ring capture and geometry lazily.

canvas_anchor_rings_dialog_type

canvas_anchor_rings_dialog_type() -> type[Any]

Load the foreground ring controls on the shared RSB lifecycle.

canvas_rsb_api

canvas_rsb_api() -> Any

Load pure RSB foreground geometry without importing host APIs eagerly.

canvas_rsb_dialog_type

canvas_rsb_dialog_type() -> type[Any]

Load the owned foreground RSB panel only inside FontLab.

close_script_dialog

close_script_dialog(dialog: Any, event: Any, key: str, *, timers: Iterable[Any] = (), children: Iterable[Any] = ()) -> None

Release only explicitly owned resources, then defer this dialog's deletion.

component_audit_backends

component_audit_backends() -> Any

Load the read-only backends the Component Audit app reuses, as one namespace.

inspect (the original component report, usage index, missing-base and source-snapshot calculations), graph (the shared elastic component graph panel, graph.show()), brackets (bracket-layer analysis and render) with bracket_report() (its whole-font capture), and update_all() (FontLab's UpdateAll, which the Components Report runs after making a glyph current). Nothing native loads until a backend function runs. Used by fontlabapp.studios.component_audit.

component_recipes_dialog_type

component_recipes_dialog_type() -> type[Any]

Load the read-only selected-layer component recipe report on demand.

component_studio_backends

component_studio_backends() -> Any

Load the backends the Component Studio app reuses, as one namespace.

components (the shared component writer: plans, editors, copy checks), recipes (the read-only Dump Component Recipes reader), panel (the component panel palette helpers, ink), history (auto-glyph facts and refusals) and pr (FontLab's in-process data tools: pr.call(tool, **arguments), as the originals' fly.pr). Nothing native loads until a backend function runs. Used by fontlabapp.studios.component_studio.

components_action

components_action(method: Any) -> Any

Refuse source drift before original filter, selection, copy and open actions.

components_api

components_api() -> Any

Load original component calculations without importing native Qt widgets.

components_dialog_type

components_dialog_type() -> type[Any]

Reuse owned Proof/Names signals, bindings and Close for component inspectors.

components_snapshot_refresh

components_snapshot_refresh(method: Any) -> Any

Guard complete ordered component scans and source snapshots.

components_view_types

components_view_types() -> Any

Load the complete original component badge painter only inside FontLab.

connect_guarded

connect_guarded(dialog: Any, signal: Any, callback: Callable[..., Any]) -> None

Retain a plain Python slot and contain errors at the PythonQt boundary.

context_proof_api

context_proof_api() -> Any

Load the Glyphs Between/Surrounded context proofs and their named-tab opener.

current_package

current_package(expected_id: int | None = None) -> Any | None

Return the current non-null package, optionally matching a scanned id.

A missing or changed font returns None so modeless reports can reject stale results without accessing fgPackage or creating application state.

derived_glyphs_backends

derived_glyphs_backends() -> Any

Load the glyph-creation backends the Derived Glyphs app reuses, as one namespace.

copies (glyphs.copies: survey, half_up, Row, create), creation (glyphs.creation: NewGlyph, Part, create_glyphs, auto_candidates, rebuild_note, REBUILD_LABEL, undo_text), component_creation (components.creation), components (components.writer), contour_copy (contours.copy), catalog (glyphs.catalog.model), dialogs (qt.dialogs: the originals' standard message box) and fontlab (FontLab's native module, loaded on first attribute access). The originals' writers are reused unchanged. Used by fontlabapp.studios.derived_glyphs.

features_dialog_type

features_dialog_type() -> type[Any]

Load the shared feature panel only when a native script needs it.

font_audit_backends

font_audit_backends() -> Any

Load the report backends Font Audit reuses, as one namespace of modules.

case_coverage (the Case Coverage controller), smallcaps (the Smallcap Consistency capture), reports (the owned JSON report window) and unreferenced (Select Unreferenced Glyphs). Nothing native loads until a backend function runs.

font_id

font_id(package: Any) -> int

Return the font_id that FontLab's fontpr tools need for package.

What: int(package.fgId), the FontGate id of the package. Why: fontpr finds a font by its FontGate id (MCPTools::findPackage -> flWorkspace::findPackageId compares fgId, source mcptools.cpp:1025-1035, flworkspace.cpp:1278-1287), and get_fonts reports that id. package.id is a different id (the flObject id). With package.id a tool fails with "Font id not found", or, when the ids collide, reads or writes ANOTHER open font. Use: fontpr.call("get_font_info", font_id=scripting.font_id(package)). Keep package.id for current_package(expected_id) and the other identity guards; those compare flPackage.id.

font_info_dialog_type

font_info_dialog_type() -> type[Any]

Load the shared six-tool Font Info panel only when a script needs its UI.

Importing scripting remains host-free; this call requires FontLab's PythonQt. Per-tool subclasses supply setup/refresh/apply, title, subtitle and registry key. MASTER_BOUND=True retains the two tools' current-master preview guard.

guide_editor_dialog_type

guide_editor_dialog_type() -> type[Any]

Load the complete editable guide-row shell only inside FontLab.

guide_rewrite_api

guide_rewrite_api() -> Any

Load finite record parsing and complete native guide rewrite helpers lazily.

guide_rewrite_dialog_type

guide_rewrite_dialog_type() -> type[Any]

Load the existing owned guide shell with late master target controls.

guides_api

guides_api() -> Any

Load guide calculations and guarded writer without eager native imports.

guides_dialog_type

guides_dialog_type() -> type[Any]

Reuse the owned Masters shell for complete guide tools and source guards.

guides_preview_type

guides_preview_type() -> type[Any]

Load the complete grid painter with shared paint containment.