Skip to content

fontgate.fgContour · declarations 001

Back to fontgate.fgContour

appendNode

appendNode(arg0: fgNode) -> Any

appendNode(fgNode) - add node to the end of the contour

area

area() -> float

float area()

autoClose

autoClose() -> bool

bool autoClose() - bool autoClose() - close contour, return true if changes was made

autoInterpolated

autoInterpolated() -> bool

bool autoInterpolated() - interpolate contour nodes, return true if changes was made

autoSmooth

autoSmooth() -> bool

bool autoSmooth() - smooth contour nodes, return true if changes was made

boundingBox

boundingBox(prepareExport: Any = ...) -> fgRect

fgRect boundingBox(fgMatrix[, bool prepareExport = false])

clear

clear() -> Any

clear() - clear all nodes

contains

contains(winding: Any = ...) -> Any

bool/Nothing contains(fgPoint[, bool winding = false])

containsCurvePoint

containsCurvePoint() -> bool

bool containsCurvePoint()

containsOffPoint

containsOffPoint() -> bool

bool containsOffPoint()

countNodes

countNodes() -> int

int countNodes() - get count of nodes

deleteNode

deleteNode(nodeIndex: int) -> bool

bool deleteNode(int nodeIndex) - delete node

draw

draw(segmentPen: Any) -> Any

draw(segmentPen) - draw the object with a segment pen

drawPoints

drawPoints(pointPen: Any) -> Any

drawPoints(pointPen) - draw the object with a point pen

empty

empty() -> bool

bool empty() - return True if contour haven't any node

filterOnPoints

filterOnPoints() -> Any

filterOnPoints()

getNode

getNode(nodeIndex: int) -> fgNode

fgNode getNode(int nodeIndex) - get node by index

getNodes

getNodes() -> Any

[ fgNode ] getNodes() - get list of fgNode objects

getUFONodesList

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

[ ((x, y), 'nodetype', bool smooth, 'name') ] getUFONodesList() -get list of contour nodes as UFO-style tuples

insertNode

insertNode(arg0: fgNode, insertTo: int) -> Any

insertNode(fgNode, int insertTo) - insert node into position insertTo

isCompatible

isCompatible(arg0: fgContour) -> bool

bool isCompatible(fgContour)

length

length() -> int

int length() - get count of nodes

midPoint

midPoint() -> fgPoint

fgPoint midPoint()

name instance-attribute

name: Any

(string) name of contour

nodes instance-attribute

nodes: Any

([fgNode]) contour nodes

open instance-attribute

open: Any

(bool) open flag

reverse

reverse() -> Any

reverse() - reverse order of contour nodes

toCurves

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

toCurves([tolerance = 5.])

toShortSplines

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

toShortSplines([tolerance = 5.[, bool short_splines = true]])

transform

transform(arg0: fgMatrix) -> fgContour

fgContour transform(fgMatrix)