Skip to content

fontgate.fgLayer

fgLayer

Layer representation

Constructors: fgLayer() - default fgLayer(fgLayer) - copy fgLayer('name') - create named layer

Math operation: fgLayer + fgLayer fgLayer - fgLayer

Native bases: object

Captured native MRO: fgLayer, 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 layer exposing name, anchors, guides and hints. The captured declarations identify those collections as fgAnchors, fgGuides and fgHints. countContours() and countShapes() report contour and shape counts; addContour() adds an fgContour and returns an fgContour. Consult the member documentation for transformation and bounding-box arguments.

Source: generated/fontgate.py: fgLayer 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)
active attribute Any
addContour function (self, arg0: fgContour) -> fgContour FgContour addContour(fgContour) - add contour to layer
anchors attribute Any
boundingBox function (self, prepareExport: Any=...) -> Any FgRect/Nothing boundingBox(fgMatrix[, prepareExport = false])
checkContours function (self) -> Any
countContours function (self) -> int
countHints function (self, horizontal: bool) -> int
countNodes function (self) -> int
countPictures function (self) -> int
countShapes function (self) -> int
findHint function (self, arg0: fgHint) -> int
findNode function (self, *args: Any, **kwargs: Any) -> Any FgNode/Nothing findNode(nodeIndex / 'nodeName') - find name by index or name
guides attribute Any
hasColors function (self) -> bool (shared captured text)
hasHints function (self) -> bool
hasPictures function (self) -> bool (shared captured text)
hints attribute Any
hints2links function (self, *args: Any, **kwargs: Any) -> Any
hintsProgram attribute Any
indexToName function (self, nodeIndex: int) -> Any 'nodeName' indexToName(int nodeIndex)
isCompatible function (self, arg0: flLayer) -> Any Bool/Nothing isCompatible(flLayer)
locked attribute Any
matrix attribute Any
name attribute Any
nameToIndex function (self, *args: Any, **kwargs: Any) -> Any
opacity attribute Any
prepareNodeNames function (self) -> Any
reference attribute Any
removeHints function (self, horizontal: bool) -> Any
service attribute Any
transform function (self, apply: Any=...) -> Any
visible attribute Any
wireframe attribute Any