Skip to content

fontlabapp.masters.interpolation.model · declarations 001

Back to fontlabapp.masters.interpolation.model

Outlines module-attribute

Outlines

Points module-attribute

Points

blend

blend(a: Outlines, b: Outlines, t: float) -> Outlines

Blend each corresponding node without rounding or changing input outlines.

fit_transform

fit_transform(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).

node_points

node_points(contour: Any) -> Points

Read every original node coordinate and on-curve flag in contour order.

outline

outline(layer: Any) -> Outlines

Own contours plus component contours placed by their transforms, as [(x, y, on)] lists.

outline_path

outline_path(contours: Outlines) -> Any

QPainterPath from contours given as [(x, y, on)] lists (cubic for two handles).

problem

problem(a: Outlines, b: Outlines) -> str | None

Why outlines a and b cannot interpolate, or None.

selected_names

selected_names() -> list[str]

Retain Font-window order, otherwise the current glyph even when it is falsey.