Skip to content

fontlab.flNodeInfo · declarations 001

Back to fontlab.flNodeInfo

breakContourExpanded

breakContourExpanded(extrapolate_d: Any = ...) -> bool

bool breakContourExpanded([double extrapolate_d=0.5])

Breaks the contour at this node, with the break slightly expanded by extrapolate_d units so the two endpoints don't coincide. Returns True if the operation succeeded. Use this to implement a "knife" tool.

Source: FontLab Proteus API documentation

contour

contour() -> flContour

flContour contour()

Returns the flContour that contains this node.

Source: FontLab Proteus API documentation

contourInfo instance-attribute

contourInfo: Any

flObject

The parent flContourInfo.

Source: FontLab Proteus API documentation

createInstance

createInstance() -> flNodeInfo

flNodeInfo createInstance()

Factory. Creates a detached flNodeInfo.

Source: FontLab Proteus API documentation

getGlyphPoint

getGlyphPoint(round: bool) -> QPointF

QPointF getGlyphPoint(bool round)

Returns this node's position in glyph units. If round is True, rounds to the nearest integer — use this when you want to read clean, integer coordinates.

Source: FontLab Proteus API documentation

getMappedNeighborsRect

getMappedNeighborsRect() -> QRectF

QRectF getMappedNeighborsRect()

Returns the canvas bounding rect that covers this node plus its two immediate neighbours (the nodes before and after it in the contour) and their control points. This is the exact region that needs to be repainted when this node moves — nothing more, nothing less.

Source: FontLab Proteus API documentation

getMappedPoint

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

QPointF getMappedPoint([QPointF])

Returns this node's current position in canvas coordinates. If a QPointF is passed, maps that point through the current transform instead of the node's own position — useful for projecting arbitrary glyph points onto the screen.

Source: FontLab Proteus API documentation

getUpdateCanvasRect

getUpdateCanvasRect() -> QRectF

QRectF getUpdateCanvasRect()

Returns the canvas rect to repaint when this specific node moves. Similar to getMappedNeighborsRect but may include a small margin for curve handles.

Source: FontLab Proteus API documentation

isValid

isValid() -> bool

bool isValid()

Returns True if this node info points to an existing node. After a delete operation some infos may become invalid — check this before using the result.

Source: FontLab Proteus API documentation

node instance-attribute

node: Any

flNode

The underlying flNode model object. Read this to get the node's type, smooth flag, etc.

Source: FontLab Proteus API documentation

setGlyphPoint

setGlyphPoint(arg0: QPointF) -> Any

setGlyphPoint(QPointF)

Moves this node to the given position in glyph units. The canvas is not automatically refreshed — call canvas.update() or fl.Update() after all moves.

Source: FontLab Proteus API documentation

setGlyphPointX

setGlyphPointX(x: float) -> Any

setGlyphPointX(double x)

Sets only the x-coordinate of this node in glyph units, leaving y unchanged. Useful for aligning a set of selected nodes to the same x value.

Source: FontLab Proteus API documentation

setGlyphPointY

setGlyphPointY(y: float) -> Any

setGlyphPointY(double y)

Sets only the y-coordinate of this node in glyph units. Useful for aligning nodes horizontally.

Source: FontLab Proteus API documentation

shape

shape() -> flShape

flShape shape()

Returns the parent flShape.

Source: FontLab Proteus API documentation

shapeInfo

shapeInfo() -> flShapeInfo

flShapeInfo shapeInfo()

Returns the parent flShapeInfo.

Source: FontLab Proteus API documentation

toNodesInfo

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

list(flNodeInfo) toNodesInfo(list(flNode))