Skip to content

fontlabapp.qt.painting.view

view

View data for one laid-out glyph occurrence: scale, neighbours and cursor.

Used by fontlabapp.plugins.backend and fontlabapp.plugins.tools.bridge; EditorPainters computes the same scale as PaintContext.scale.

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
Side attribute
glyph_point function (glyph: Any, block: Any, point: Any) -> tuple[float, float] Map a canvas-unit <code>point</code> into glyph units of one occurrence.
neighbours function (block: Any, index: int, info: Any, report: Callable[[Exception], object]) -> tuple[Side, Side] Return <code>(prev, next)</code><code> beside paragraph glyph </code><code>index</code><code> (</code><code>info</code>).
px_per_unit function (to_view: Callable[[Any], Any], point_type: Callable[[float, float], Any]) -> float Return the view length of one glyph-unit x step through <code>to&#95;view</code>.