fontlab.flContourInfo · declarations 001
brectOnCanvas
brectOnCanvas() -> QRectF
QRectF brectOnCanvas()
Returns this contour's bounding rect in canvas coordinates. More precise than the full shape bounding rect — useful for repaint optimisation.
Source: FontLab Proteus API documentation
cloneSelected
cloneSelected() -> list[flContourInfo]
QList
Clones only the selected portions of this contour, returning new flContourInfo objects. Used internally by copy/paste.
Source: FontLab Proteus API documentation
combine
combine(transform: QTransform) -> Any
combine(QTransform transform)
contour
instance-attribute
contour: Any
flContour>
The underlying flContour model object.
Source: FontLab Proteus API documentation
createInstance
createInstance() -> flContourInfo
flContourInfo createInstance()
Factory. Creates a detached flContourInfo.
Source: FontLab Proteus API documentation
dist
instance-attribute
dist: Any
double dist
getHitNode
getHitNode(canvas_pos: QPointF, node_mask: Any = ...) -> Any
flNodeInfo/Nothing getHitNode(QPointF canvas_pos, double dist[, int node_mask=flNode::AnyNodeMask])
Returns the flNodeInfo of the node nearest to canvas_pos, or Nothing if no node is close enough. The hit radius depends on the zoom level and user preferences.
Source: FontLab Proteus API documentation
getNodesInfo
getNodesInfo() -> list[flNodeInfo]
QList
Returns all nodes of this contour as flNodeInfo objects. Use these to draw custom node handles at the correct screen positions in a tool's paint method.
Source: FontLab Proteus API documentation
getUpdateRect
getUpdateRect(ex_t: float) -> QRectF
QRectF getUpdateRect(double ex_t)
Returns the canvas rectangle that needs repainting when the hover point changes to ex_t. Pass this to the canvas repaint call to avoid full-screen redraws.
Source: FontLab Proteus API documentation
glyphInfo
instance-attribute
glyphInfo: Any
flObject - glyph info
paramExT
paramExT() -> float
double paramExT()
Returns the extended parametric t value at the most recently computed closest point. "Extended" means the value runs continuously along the whole contour (not clamped to 0..1 per segment). Used to display the hover preview point.
Source: FontLab Proteus API documentation
paramT
paramT() -> float
double paramT()
Returns the standard per-segment parametric t (0..1) of the closest hit point — useful to identify which segment the closest point is on.
Source: FontLab Proteus API documentation
setExT
setExT(ex_t: float) -> Any
setExT(double ex_t)
Positions the contour's hover-point indicator at parametric position ex_t. Call this when the mouse moves to update where the tool preview is shown.
Source: FontLab Proteus API documentation
shapeInfo
instance-attribute
shapeInfo: Any
flShapeInfo
The parent flShapeInfo this contour belongs to.
Source: FontLab Proteus API documentation
transform
instance-attribute
transform: Any
transform matrix