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
GlyphsAppfacade (fontlab_bridge):Glyphs.menuis anAppMenuover the plugin host,DRAWFOREGROUNDcallbacks become after-native-layer editor painters,DRAWBACKGROUNDcallbacks 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.pluginsclasses bound to onePluginEnv;FontLabPluginHostgets a model adapter andEditorPaintersalayer_resolver, so reporters receive model layers. - L3 import adapters:
AppKit/Foundation/Cocoakeep L3's value types and gain L2's Qt-backed classes, menus, drawing and event names;objcis L2's subset withlookUpClassover 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> -> the model </code><code>GSLayer</code> shown. |