fontlab_glyport.glyphsapp · declarations 001
Back to fontlab_glyport.glyphsapp
NSStr
NSStr(string)
GlyphsApp's NSStr: an NSString of a truthy value, else None
(Python str is what PyObjC hands scripts for NSString).
glyphsapp_provider
glyphsapp_provider(model: Any, bridge: GlyphsBridge, *, profile: str = 'glyphs4', defaults: Store | None = None, wrap: Wrap | None = None, error_sink: ErrorSink, on_close: OnClose | None = None, menu: Any = None, filters: MutableMapping | None = None) -> Callable[[], ModuleType]
Zero-argument provider for an ExecutionContext GlyphsApp adapter.
Pass on_close=ctx.on_close so ctx.close() removes every callback
each provided module registered, and profile=ctx.profile for its wrapper.
make_glyphsapp_module
make_glyphsapp_module(model: Any, bridge: GlyphsBridge, *, profile: str = 'glyphs4', defaults: Store | None = None, wrap: Wrap | None = None, error_sink: ErrorSink, on_close: OnClose | None = None, menu: Any = None, filters: MutableMapping | None = None) -> ModuleType
Return a fresh GlyphsApp module bound to model and bridge.
defaults is the mapping behind Glyphs.defaults (default: the
process-wide in-memory _DEFAULT_STORE). wrap (e.g.
ExecutionContext.wrap) runs every callback; callback exceptions go to
error_sink(exc, event). on_close (e.g. ExecutionContext.on_close)
receives, on the first addCallback, a hook removing every callback.
profile selects the exact Glyphs 2/3/4 info wrapper, defaulting to 4;
the execution layer must resolve auto before calling this factory.