Skip to content

fontlab_glyport.glyphsapp.fontlab_session

fontlab_session

One execution context's FontLab services, shared by all its import adapters.

FontLabSession(ctx, version=...) joins the three issue-104 lanes for a script or plugin run in FontLab:

  • L1 model and GlyphsApp facade (fontlab_bridge): Glyphs.menu is an AppMenu over the plugin host, DRAWFOREGROUND callbacks become after-native-layer editor painters, DRAWBACKGROUND callbacks paint before the native layer on builds with native canvas painters (else as an overlay, R054).
  • L2 plugin host, editor painters and Cocoa/Vanilla layer: GlyphsApp.plugins classes bound to one PluginEnv; FontLabPluginHost gets a model adapter and EditorPainters a layer_resolver, so reporters receive model layers.
  • L3 import adapters: AppKit/Foundation/Cocoa keep L3's value types and gain L2's Qt-backed classes, menus, drawing and event names; objc is L2's subset with lookUpClass over those classes.

Native pieces (PythonQt, fontlab) are imported and built on first use, and everything is closed with the context. plugins.register_plugin finds the session as ctx.fontlab_session.

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
COCOA_MODULES attribute
layer_resolver function (model: Model, backend: FontLabBackend) -> Callable[[Any], Any] <code>EditorPainters</code><code> hook: </code><code>flGlyphInfo</code><code> -&gt; the model </code><code>GSLayer</code> shown.