Skip to content

fontlabapp.fontui.model

model

Read-only view state and decomposed drawing inputs for duck-typed glyph/font models.

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
outline function (font, name) Decompose affine components before drawing; reject broken graphs explicitly.
partition_paths function (recording: Iterable[tuple]) -> tuple[tuple, tuple] Keep open contours out of fill paths; Qt otherwise closes them to fill.
viewport function (bounds, advance, descender, ascender, width, height, zoom=1) Uniform fit including advance and font metrics; screen y points down.