Skip to content

fontlab.flContour · declarations 004

Back to fontlab.flContour

toSplines

toSplines(tolerance: float, short_splines: bool) -> Any

toSplines(float tolerance, bool short_splines)

The reverse of toBeziers — converts cubic Bézier curves to quadratic splines for TrueType output. short_splines=True uses a more compact quadratic representation.

Source: FontLab Proteus API documentation

transform instance-attribute

transform: Any

transform matrix

The contour's accumulated transformation matrix. This is applied on top of node coordinates and does not modify them directly until you call applyTransform(). Normally you don't set this directly; use transform methods instead.

Source: FontLab Proteus API documentation

unselectAll

unselectAll() -> Any

unselectAll()

Deselects every node in the contour. Equivalent to setSelectedNodes(False).

Source: FontLab Proteus API documentation

unselectedPath

unselectedPath() -> QPainterPath

QPainterPath unselectedPath()

Returns the unselected portions of the contour as a QPainterPath.

Source: FontLab Proteus API documentation

updateG2

updateG2(all_nodes: bool) -> Any

updateG2(bool all_nodes)

Recalculates G2 curvature-continuity flags across the contour. Pass all_nodes=True to update every node, or False to update only selected nodes. Run this after adjusting handles to refresh G2 state.

Source: FontLab Proteus API documentation

updateHobby

updateHobby(all_nodes: bool) -> Any

updateHobby(bool all_nodes)

Updates Hobby-spline tension data for the contour. Pass True to process all nodes or False to update only selected ones.

Source: FontLab Proteus API documentation

updateIndices

updateIndices() -> Any

updateIndices()

Recalculates all cached node index values. Call this after inserting or removing nodes programmatically to ensure that index-based lookups remain accurate.

Source: FontLab Proteus API documentation

validateExT

validateExT(*args: Any, **kwargs: Any) -> Any

(new_ex_t, bool) validateExT(float ex_t)

Same as validateT but for extended-parameter values.

Source: FontLab Proteus API documentation

validateIndex

validateIndex(*args: Any, **kwargs: Any) -> Any

(new_inx, bool) validateIndex(int inx)

Clamps a node index to the valid range [0, nodesCount-1] and reports whether clamping occurred.

Source: FontLab Proteus API documentation

validateSmartR

validateSmartR(*args: Any, **kwargs: Any) -> Any

(new_r, max_available_r, bool) validateSmartR(int node_ix, float r)

Validates a Smart Angle radius for the node at node_ix, returning the clamped radius, the maximum available radius given the neighboring geometry, and a flag indicating if clamping occurred.

Source: FontLab Proteus API documentation

validateT

validateT(*args: Any, **kwargs: Any) -> Any

(new_t, bool) validateT(float t)

Clamps t to the valid range for this contour and returns both the clamped value and a flag indicating whether it was changed.

Source: FontLab Proteus API documentation

validatedT

validatedT(t: float) -> float

float validatedT(float t)

A simpler version of validateT that returns just the clamped t without the changed-flag.

Source: FontLab Proteus API documentation

verifySmooth

verifySmooth() -> Any

verifySmooth()

Similar to checkSmooth but performs stricter validation and may raise an assertion if inconsistencies are found. Primarily for debugging.

Source: FontLab Proteus API documentation