fontlabapp.core.scripting
scripting
Access the current native font lazily and select report results safely.
Import outside FontLab is supported; call these helpers inside FontLab scripts. Selection changes only the Font window selection, never glyph geometry.
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 |
|---|---|---|---|
advance_widths_backends |
function | () -> Any |
Load the metrics backends the Advance Widths app reuses, as one namespace. |
anchor_copy_api |
function | () -> Any |
Load complete anchor-copy arithmetic and guarded writes lazily. |
anchor_copy_dialog_type |
function | () -> type[Any] |
Load the owned anchor-copy shell only inside FontLab. |
anchor_copy_snapshot_refresh |
function | (method: Any) -> Any |
Bind old source before intentional control changes in the copy panel. |
anchor_transfer_backends |
function | () -> Any |
Load the anchor backends the Anchor Transfer app reuses, as one namespace. |
anchors_action |
function | (method: Any) -> Any |
Guard original anchor selectors, filtering and Font-window selection. |
anchors_api |
function | () -> Any |
Load shared original anchor calculations without importing native Qt. |
anchors_coordinate_dialog_type |
function | (kind: str) -> type[Any] |
Load the complete original coordinate panel only inside FontLab. |
anchors_coordinates_api |
function | () -> Any |
Load original coordinate arithmetic and the reviewed point core lazily. |
anchors_dialog_type |
function | () -> type[Any] |
Load the anchor extension of the owned Proof/Names panel shell lazily. |
anchors_snapshot_refresh |
function | (method: Any) -> Any |
Publish complete anchor scans only after source/domain checks. |
anchors_view_types |
function | () -> Any |
Load the complete original anchor cloud and attachment painters lazily. |
angularizzle_dialog_type |
function | () -> type[Any] |
Load the bound Angularizzle preview session only when its menu runs. |
canvas_anchor_rings_api |
function | () -> Any |
Load immutable duplicate-anchor ring capture and geometry lazily. |
canvas_anchor_rings_dialog_type |
function | () -> type[Any] |
Load the foreground ring controls on the shared RSB lifecycle. |
canvas_rsb_api |
function | () -> Any |
Load pure RSB foreground geometry without importing host APIs eagerly. |
canvas_rsb_dialog_type |
function | () -> type[Any] |
Load the owned foreground RSB panel only inside FontLab. |
close_script_dialog |
function | (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 |
function | () -> Any |
Load the read-only backends the Component Audit app reuses, as one namespace. |
component_recipes_dialog_type |
function | () -> type[Any] |
Load the read-only selected-layer component recipe report on demand. |
component_studio_backends |
function | () -> Any |
Load the backends the Component Studio app reuses, as one namespace. |
components_action |
function | (method: Any) -> Any |
Refuse source drift before original filter, selection, copy and open actions. |
components_api |
function | () -> Any |
Load original component calculations without importing native Qt widgets. |
components_dialog_type |
function | () -> type[Any] |
Reuse owned Proof/Names signals, bindings and Close for component inspectors. |
components_snapshot_refresh |
function | (method: Any) -> Any |
Guard complete ordered component scans and source snapshots. |
components_view_types |
function | () -> Any |
Load the complete original component badge painter only inside FontLab. |
connect_guarded |
function | (dialog: Any, signal: Any, callback: Callable[..., Any]) -> None |
Retain a plain Python slot and contain errors at the PythonQt boundary. |
context_proof_api |
function | () -> Any |
Load the Glyphs Between/Surrounded context proofs and their named-tab opener. |
current_package |
function | (expected_id: int | None=None) -> Any | None |
Return the current non-null package, optionally matching a scanned id. |
derived_glyphs_backends |
function | () -> Any |
Load the glyph-creation backends the Derived Glyphs app reuses, as one namespace. |
features_dialog_type |
function | () -> type[Any] |
Load the shared feature panel only when a native script needs it. |
font_audit_backends |
function | () -> Any |
Load the report backends Font Audit reuses, as one namespace of modules. |
font_id |
function | (package: Any) -> int |
Return the <code>font_id</code><code> that FontLab's fontpr tools need for </code><code>package</code>. |
font_info_dialog_type |
function | () -> type[Any] |
Load the shared six-tool Font Info panel only when a script needs its UI. |
guide_editor_dialog_type |
function | () -> type[Any] |
Load the complete editable guide-row shell only inside FontLab. |
guide_rewrite_api |
function | () -> Any |
Load finite record parsing and complete native guide rewrite helpers lazily. |
guide_rewrite_dialog_type |
function | () -> type[Any] |
Load the existing owned guide shell with late master target controls. |
guides_api |
function | () -> Any |
Load guide calculations and guarded writer without eager native imports. |
guides_dialog_type |
function | () -> type[Any] |
Reuse the owned Masters shell for complete guide tools and source guards. |
guides_preview_type |
function | () -> type[Any] |
Load the complete grid painter with shared paint containment. |
inspectors_api |
function | () -> Any |
Load shared read-only metrics and raw contour calculations lazily. |
inspectors_dialog_type |
function | () -> type[Any] |
Load the inspector extension of the existing owned Masters shell lazily. |
inspectors_snapshot_refresh |
function | (method: Any) -> Any |
Reuse complete ordered master-domain scans and failed-read invalidation. |
inspectors_view_types |
function | () -> Any |
Load complete original spacing/contour painters only inside the host. |
interpolation_api |
function | () -> Any |
Load original node blending and lazy native path calculations. |
interpolation_view_type |
function | () -> type[Any] |
Load the full original endpoint/mix painter only inside FontLab. |
kerning_class_lists |
function | (package: Any, master: str) -> tuple[dict, dict, dict] |
Index class members by allowed left/right side, preserving native order. |
kerning_classes |
function | (package: Any, master: str) -> dict[str, tuple[list[str], str]] |
Return complete native class members and their pair-side roles. |
kerning_dialog_type |
function | () -> type[Any] |
Load the five read-only kerning panels' shared shell lazily (App 0.2.7). |
kerning_edit_dialog_type |
function | () -> type[Any] |
Load the snapshot-bound editor shell only when a native tool needs it. |
kerning_editor_api |
function | () -> Any |
Load shared pure plans and native batch access for menu editors (App0.2.8). |
kerning_editor_apply |
function | (method: Any) -> Any |
Require the exact preview snapshot before any menu-editor mutation. |
kerning_editor_make_table |
function | (headers: list[str]) -> Any |
Build shared editor preview tables with the original native sizing. |
kerning_editor_refresh |
function | (method: Any) -> Any |
Bind complete kerning previews, with disabled actions on failed reads. |
kerning_layout |
function | (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 |
function | (kerning: Any, left: str, right: str) -> float |
Use FontLab's effective glyph/class precedence; propagate read failures. |
kerning_pairs |
function | (package: Any, master: str, *, typed: bool=False) -> dict |
Read explicit pairs; typed sides preserve literal @ glyph identifiers. |
kerning_persistence_api |
function | () -> Any |
Load exact-pair audit snapshots without importing the native host. |
kerning_persistence_dialog_type |
function | () -> type[Any] |
Load the nonmodal persistence audit only when its menu is invoked. |
kerning_proof_api |
function | () -> Any |
Load the four bundled kerning proof texts and their new-tab opener. |
kerning_proof_geometry |
function | (rows: list, bounds: dict, width: float, height: float, scale: float, ascender: float, descender: float, labe⦠|
Wrap and fit complete ink, overhangs and labels without omitting glyphs. |
kerning_selection_api |
function | () -> Any |
Load forthcoming App 0.2.9 selected-exception/text plans without native UI. |
kerning_snapshot_refresh |
function | (method: Any) -> Any |
Publish complete kerning scans only; invalidate failed native reads. |
kerning_tool_backends |
function | () -> Any |
Load the kerning backends Kerning Browser and Kerning Batch reuse, as one namespace. |
layer_manager_backends |
function | () -> Any |
Load the layer backends the Layer Manager app reuses, as one namespace. |
layer_selection_api |
function | () -> Any |
Load the ordered selected-layer capture used by the context proofs. |
mark_attachment_backends |
function | () -> Any |
Load the backends the Mark Attachment app reuses, as one namespace. |
master_angles_api |
function | () -> Any |
Load staged master-angle reads and the single-container native writer lazily. |
master_angles_dialog_type |
function | () -> type[Any] |
Load the complete italic-angle controls only when a menu is launched. |
master_angles_view_types |
function | () -> Any |
Load the original slanted-stem gauge and native spin readability helpers. |
master_switcher_api |
function | () -> Any |
Load compact master-button calculations without eager host imports. |
master_switcher_dialog_type |
function | () -> type[Any] |
Reuse the owned Masters shell with exact master-button source guards. |
masters_api |
function | () -> Any |
Load shared read-only master calculations without importing native UI. |
masters_dialog_type |
function | () -> type[Any] |
Reuse the owned Proof/Names panel for complete original Masters menus. |
masters_fill_table |
function | (table: Any, rows: list, highlight: Any=None) -> None |
Render original master cells, notes and differing-value highlights. |
masters_make_table |
function | (headers: list[str], min_height: int=280) -> Any |
Create the original read-only table beside the master report or chart. |
masters_snapshot_refresh |
function | (method: Any) -> Any |
Publish complete master report scans; refuse stale native actions. |
masters_view_types |
function | () -> Any |
Load the actual original line and bar charts only inside FontLab. |
names_dialog_type |
function | () -> type[Any] |
Load the shared inspection/selection Names panel inside FontLab only. |
names_font_glyphs |
function | () -> list[tuple[str, list[int]]] |
Read names and encodings in current font order without changing masters. |
names_font_window_selection |
function | (*, expected_fg_id: int | None=None, deadline: float | None=None) -> list[str] |
Read complete native font-order selection, with optional carrier fencing. |
names_legacy_font |
function | () -> list[str] |
Glyph names of the legacy <code>FL.fl.font</code> in its index order; [] with no font. |
names_muted |
function | (widget: Any) -> str |
Resolve theme-derived secondary colour for Names controls. |
names_selected_names |
function | () -> list[str] |
Read Font window selection, otherwise the non-None current glyph. |
names_snapshot_refresh |
function | (method: Any) -> Any |
Wrap a Names scan with complete-refresh publication. |
node_coordinates_api |
function | () -> Any |
Load selected-node measurements without importing Qt or FontLab eagerly. |
point_counts_dialog_type |
function | () -> type[Any] |
Load the owned Point Counter snapshot panel only when its menu runs. |
proof_api |
function | () -> Any |
Load shared advance-only parsing, outlines and word filters (App0.2.10). |
proof_dialog_type |
function | () -> type[Any] |
Load the owned native Proof panel shell only when a script needs it. |
proof_snapshot_refresh |
function | (method: Any) -> Any |
Bind complete Proof results and clear failed or stale scans. |
proof_studio_backends |
function | () -> Any |
Load the backends Proof Studio part 2 reuses, as one namespace of modules. |
proof_view_types |
function | () -> Any |
Load the three actual outline painters lazily inside FontLab. |
read_feature_blocks |
function | (package: Any) -> dict |
Read exact VFJ feature source; see <code>fontui.feature_blocks</code>. |
review_action |
function | (method: Any) -> Any |
Refuse stale review selections using the existing owned action boundary. |
review_dialog_type |
function | () -> type[Any] |
Reuse the guarded owned lifecycle for two complete read-only reviews. |
review_snapshot_refresh |
function | (method: Any) -> Any |
Validate cached source before a complete review or intended option change. |
revision_compare_api |
function | () -> Any |
Load exact named-field comparison without eager native imports. |
revision_compare_dialog_type |
function | () -> type[Any] |
Load explicit open-font comparison controls when their menu is invoked. |
select_glyphs |
function | (names: Iterable[str], *, package_id: int, add: bool=False) -> list[str] |
Select exactly the requested names in the matching current Font window. |
show_script_dialog |
function | (dialog_type: Callable[[Any], Any], key: str) -> Any |
Replace only a safely closed owner; retain and raise a diagnosed refusal. |
spacing_offset_backends |
function | () -> Any |
Reuse the captured selected-layer offset preview without exposing studio internals. |
tabular_width_dialog_type |
function | () -> type[Any] |
Load the read-only tabular-width report inside FontLab, on demand. |
unreferenced_api |
function | () -> Any |
Load original glyph-reference calculations without importing native Qt. |
vertical_metrics_backends |
function | () -> Any |
Load the backends the Vertical Metrics & Zones app reuses, as one namespace. |
vertical_metrics_dialog_type |
function | () -> type[Any] |
Load the all-master stored vertical-metrics report only on invocation. |
vertical_metrics_views |
function | () -> Any |
Return the Qt module with the Italic Angle <code>Gauge</code><code> (</code><code>masters.angles.views</code>). |
write_feature_blocks |
function | (package: Any, expected: dict, updated: dict, *, references: Iterable[str], undo_name: str) -> dict[str, int] |
Write guarded VFJ feature source; see <code>fontui.feature_blocks</code>. |
write_font_info |
function | (package: Any, changes: Iterable[tuple[str | None, str, Any, Any]], *, undo_name: str) -> dict[str, int] |
Apply an explicit Font Info plan after checking every old value and master. |