fontgate.fgContour
fgContour
Contour representation
Constructors: fgContour() - default fgContour(fgContour) - copy
Native bases: object
Captured native MRO: fgContour, object
Native new allocation evidence (not an init overload): (args, *kwargs) Create and return a new object. See help(type) for accurate signature.
Supplemental documentation:
A contour in the fontgate data model. The captured declaration exposes nodes, getNodes, getNode, countNodes and open. Consult the native declarations for supported calling conventions.
Source: generated/fontgate.py: fgContour captured declaration
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
__init__ |
function | (self, /, *args: Any, **kwargs: Any) -> None |
Initialize self. (shared captured text) |
appendNode |
function | (self, arg0: fgNode) -> Any |
Add node to the end of the contour |
area |
function | (self) -> float |
|
autoClose |
function | (self) -> bool |
Bool autoClose() - bool autoClose() - close contour, return true if changes was made |
autoInterpolated |
function | (self) -> bool |
Bool autoInterpolated() - interpolate contour nodes, return true if changes was made |
autoSmooth |
function | (self) -> bool |
Bool autoSmooth() - smooth contour nodes, return true if changes was made |
boundingBox |
function | (self, prepareExport: Any=...) -> fgRect |
|
clear |
function | (self) -> Any |
Clear all nodes |
contains |
function | (self, winding: Any=...) -> Any |
Bool/Nothing contains(fgPoint[, bool winding = false]) |
containsCurvePoint |
function | (self) -> bool |
|
containsOffPoint |
function | (self) -> bool |
|
countNodes |
function | (self) -> int |
Int countNodes() - get count of nodes |
deleteNode |
function | (self, nodeIndex: int) -> bool |
Bool deleteNode(int nodeIndex) - delete node |
draw |
function | (self, segmentPen: Any) -> Any |
Draw the object with a segment pen |
drawPoints |
function | (self, pointPen: Any) -> Any |
Draw the object with a point pen |
empty |
function | (self) -> bool |
Bool empty() - return True if contour haven't any node |
filterOnPoints |
function | (self) -> Any |
|
getNode |
function | (self, nodeIndex: int) -> fgNode |
FgNode getNode(int nodeIndex) - get node by index |
getNodes |
function | (self) -> Any |
[ fgNode ] getNodes() - get list of fgNode objects |
getUFONodesList |
function | (self, *args: Any, **kwargs: Any) -> Any |
[ ((x, y), 'nodetype', bool smooth, 'name') ] getUFONodesList() -get list of contour nodes as UFO-style tuples |
insertNode |
function | (self, arg0: fgNode, insertTo: int) -> Any |
Insert node into position insertTo |
isCompatible |
function | (self, arg0: fgContour) -> bool |
|
length |
function | (self) -> int |
Int length() - get count of nodes |
midPoint |
function | (self) -> fgPoint |
|
name |
attribute | Any |
(string) name of contour |
nodes |
attribute | Any |
([fgNode]) contour nodes |
open |
attribute | Any |
(bool) open flag |
reverse |
function | (self) -> Any |
Reverse order of contour nodes |
toCurves |
function | (self, *args: Any, **kwargs: Any) -> Any |
|
toShortSplines |
function | (self, *args: Any, **kwargs: Any) -> Any |
|
transform |
function | (self, arg0: fgMatrix) -> fgContour |