fontlabapp.core.native_tabs · declarations 001
Back to fontlabapp.core.native_tabs
canvases
canvases(native: Any, workspace: Any) -> list
Every glyph canvas, or only the active one where the binding is broken.
FontLab 9.0.9804's flWorkspace.canvases() raises TypeError (native probe 2026-11-03). The active canvas still holds every block a fresh tab could be confused with, so new-tab fences stay sound; only reuse choices shrink.
preserve_rendered_activation
preserve_rendered_activation(workspace: Any) -> Iterator[None]
Preserve the old renderer's shape activation while the caller opens a tab.
preserve_shape_activation
preserve_shape_activation(package: Any, names: Iterable[str]) -> Iterator[None]
Restore original active flags using Glyport's existing first-error policy.
Keep first-name order, skip absent glyphs/layers and retain the last wrapper encountered per native shape id. Callers that need deadline checks or aggregate restoration failures use their own snapshot/restoration policy.
rendered_block
rendered_block(workspace: Any) -> Any
Read the active block, then the first canvas block, or None.
text_tab_sender
text_tab_sender(qtgui: Any, receiver: Any, *, bootstrap_text: str, connection_error: Exception, disconnection_error: Exception, before_disconnect: Callable[[], None] | None = None) -> Iterator[Any]
Own one hidden sender for FontLab's native doCreateTextBlock(QString) slot.
Set caller-supplied bootstrap before connecting. Yield the sender; the caller sets its final text. Run optional caller restoration before disconnecting, including bootstrap/connect failures. Delete the sender even if restoration or disconnect fails. No Python callback is connected to a native signal. Error instances keep caller-specific types/messages/capabilities unchanged.