fontlab_glyport.drawing.native_painters
native_painters
Glyph-editor painters on FontLab's native canvas hooks (resolves R054).
Builds with flCanvas.appendPythonPainter(callback, order) call Python
inside the canvas paint: UnderOwner before the glyphs are drawn,
OverOwner after them. callback(painter, canvas) gets a painter that
FontLab has saved and reset to viewport pixels; it is valid only during the
call, so this module never creates or ends one.
NativeEditorPainters keeps App's registry, window poll, layer resolver and
per-glyph PaintContext maths, and replaces App's transparent overlay
widget with two native painters per canvas. Both phases work, so a Reporter
background is really drawn under the outlines. When a canvas dies, FontLab
drops its native painters itself; the destroyed slot only forgets the
Python entry.
editor_painters(qt, fontlab, ...) picks this class when the build has the
hook, else Glyport's overlay EditorPainters (background as overlay, R054).
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 |
|---|---|---|---|
PHASES |
attribute | ||
editor_painters |
function | (qt: Any, fontlab: Any, **kwargs: Any) -> EditorPainters |
Native canvas painters when the build has them, else the overlay. |
has_native_painters |
function | (fontlab: Any) -> bool |
True when this FontLab build has <code>flCanvas.appendPythonPainter</code>. |
paint_widget |
function | () -> Any |
The viewport being painted by a native painter, else None. |