Skip to content

fontlabapp.masters.interpolation.model

model

Original all-node interpolation and complete painter paths, loaded without Qt.

Keep the L1 preview's contour order, transformed components, node-kind checks, endpoint blending and quadratic/cubic closure. Native Qt loads only when needed. The menu and shared painter use these helpers; no font geometry is written.

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
Outlines attribute
Points attribute
blend function (a: Outlines, b: Outlines, t: float) -> Outlines Blend each corresponding node without rounding or changing input outlines.
fit_transform function (rect: Any, width: float, height: float, margin: float=16) -> Any QTransform mapping font units in rect (y up) into a width × height widget (y down).
master_layers function (glyph: Any, masters: list[str]) -> dict[str, Any] {master: flLayer} for the masters present in this glyph. (shared captured text)
node_points function (contour: Any) -> Points Read every original node coordinate and on-curve flag in contour order.
outline function (layer: Any) -> Outlines Own contours plus component contours placed by their transforms, as [(x, y, on)] lists.
outline_path function (contours: Outlines) -> Any QPainterPath from contours given as [(x, y, on)] lists (cubic for two handles).
problem function (a: Outlines, b: Outlines) -> str | None Why outlines a and b cannot interpolate, or None.
selected_names function () -> list[str] Retain Font-window order, otherwise the current glyph even when it is falsey.