fontlabapp.metrics.canvas_rsb.model
model
Read laid-out glyph occurrences and paint an RSB foreground adaptation.
Behavior follows akufadhl/RSBline, Apache-2.0; implementation is original. Use glyph, block and canvas maps in order. Glyph placement includes kerning. The caller owns the overlay, polling and font/window binding. Paint consumes immutable numeric records and never reads a native font or ends its painter.
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 |
|---|---|---|---|
Matrix |
attribute | ||
Point |
attribute | (shared captured text) | |
capture |
function | (canvas: Any, package: Any, direction: int, *, deadline: float | None=None) -> tuple[Marker, ...] |
Read every bound-font glyph occurrence without selection or font writes. |
compose |
function | (first: Matrix, second: Matrix) -> Matrix |
Apply first then second, matching native glyph × block × viewport. |
geometry |
function | (width: float, ascender: float, descender: float, x_height: float, angle: float, scale: float, direction: int… |
Keep original italic shift, half-advance triangle and scale exponents. |
map_point |
function | (matrix: Matrix, point: Point) -> Point |
Map one point through a numeric Qt affine matrix. |
matrix |
function | (transform: Any) -> Matrix |
Copy only the verified six affine terms; retain no native wrapper. |
paint |
function | (painter: Any, records: tuple[Marker, ...], color: str) -> None |
Paint original line and red40% triangle; always restore the borrowed painter. |