Skip to content

fontgate.fgShape

fgShape

Shape representation

Constructors: fgShape() - default fgShape(fgShape) - copy fgShape(fgShape, fgShape, float tx, float ty) fgShape(fgShape, fgShape, float tx, float ty, int blend_mode)

Math Operations: fgShape + fgShape fgShape - fgShape fgShape * float

Native bases: object

Captured native MRO: fgShape, 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 font-data shape whose contours attribute holds fgContours. countContours() and countNodes() report outline counts; addContour() adds an fgContour. matrix exposes an fgMatrix, while name and opacity describe the shape.

Source: generated/fontgate.py: fgShape 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)
addContour function (self, arg0: fgContour) -> fgContour
addShape function (self, *args: Any, **kwargs: Any) -> Any Int addShape(fgShape, int mode) ???
applyTransform function (self) -> Any
area function (self) -> float (shared captured text)
assignStyle function (self, arg0: fgShape) -> Any
autoInterpolated function (self) -> bool
autoSmooth function (self) -> bool
body attribute Any
boundingBox function (self, prepareExport: Any=...) -> Any FgRect/Nothing boundingBox(fgMatrix[, bool prepareExport=false])
checkContours function (self) -> Any (shared captured text)
containsOffPoint function (self) -> bool (shared captured text)
contours attribute Any
countContours function (self) -> int (shared captured text)
countNodes function (self) -> int (shared captured text)
excludeShape function (self, *args: Any, **kwargs: Any) -> Any Int excludeShape(fgShape, int mode) ???
hasBody function (self) -> bool
hasContours function (self) -> bool
intersectShape function (self, *args: Any, **kwargs: Any) -> Any Int intersectShape(fgShape, int mode) ???
isCompatible function (self, arg0: fgShape) -> Any Bool/Nothing isCompatible(fgShape)
makeStroke function (self, *args: Any, **kwargs: Any) -> Any FgShape/None makeStroke([cap0, cap1]); returns a detached filled outline
matrix attribute Any (shared captured text)
name attribute Any (shared captured text)
opacity attribute Any (shared captured text)
pen attribute Any
picture attribute Any
removeOverlap function (self) -> int
reverse function (self) -> Any
sortContours function (self) -> Any
subtractShape function (self, *args: Any, **kwargs: Any) -> Any Int subtractShape(fgShape, int mode) ???
transform function (self, arg0: fgMatrix) -> Any (shared captured text)