Skip to content

fontlab_glyport.glyphsapp.bridge

bridge

The one host boundary of the GlyphsApp facade (planned R026 operations).

fontlab_bridge.FontLabGlyphsBridge implements it for FontLab 9 (natively unverified); tests also use a pure in-memory double. subscribe/remove are the R026 planned bridge operations; the rest are the host services this slice needs. Tokens returned by subscribe are opaque, unique and removed exactly once by the facade; the facade keeps a token whose remove raised, so a retry can remove it.

The callable passed to subscribe catches the script callback's exceptions and hands them to the facade's error_sink. If error_sink itself raises, that exception propagates into the host's dispatch; a native bridge must contain it there (log it, keep the GUI thread alive).

Classes