Skip to content

fontlab_glyport.glyphsapp.fontlab_bridge

fontlab_bridge

FontLab 9 GlyphsBridge (R026 subscribe/remove, R027 teardown).

Native modules (fontlab, PythonQt.QtCore, PythonQt.QtGui) are imported on first use, never at module import. Each native member used is listed with its fontlab-echopy stub line in WORK.md (integration task 2).

  • Output: script text reaches the context sink (ExecutionContext.output). show_macro_window/clear_log leave FontLab's Output panel (user content) alone unless output_panel=True.
  • show_notification posts a status-bar message; never a modal dialog.
  • redraw calls fontlab.UpdateActiveCanvas(): a view refresh that sends no model change notification.
  • subscribe supports GSUpdateInterface: one owned QTimer polls an interface fingerprint and calls subscribers when it changes, with one argument (a Notification). Document opened/will-close events connect one slot each to FontLab's flItems.instance().qobject signals (DOCUMENT_SIGNALS). Other events raise UnsupportedCapability.
  • remove is idempotent for issued tokens (R026); an unknown token raises.
  • Drawing callbacks use the editor painters. DrawBackground paints under the outlines through the native UnderOwner painter; on builds without native painters it falls back to an overlay (R054), and its registration records REPORTER_BACKGROUND_AS_OVERLAY in the owning execution receipt.

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
DOCUMENT_ACTIVATED attribute
DOCUMENT_SIGNALS attribute
DRAW_BACKGROUND attribute
DRAW_FOREGROUND attribute
Log attribute
NOTICE_TIMEOUT_MS attribute
POLL_INTERVAL_MS attribute
UPDATE_INTERFACE attribute
fontlab_glyphsapp_provider function (ctx, *, version: ProfileVersion | tuple[float, float], packages=None, defaults=None, **options) -> Callable Wire a FontLab <code>GlyphsApp</code><code> adapter into </code><code>ExecutionContext</code><code> </code><code>ctx</code>.
interface_state function () -> tuple Current package id and current glyph id: registered objects only.