fontgate.fgComponent
fgComponent
Component representation
Constructors: fgComponent() - default fgComponent(fgComponent) - copy fgComponent('name', fgMatrix) - by 'name' and transformation matrix fgMatrix
Native bases: object
Captured native MRO: fgComponent, 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 component. The captured declaration exposes the attributes baseGlyph, box, hasFullMatrix, index, matrix, offset and scale, and the methods draw, drawPoints and move. draw takes a segment pen, drawPoints takes a point pen, and move takes float dx and dy. It is created as fgComponent(), as a copy fgComponent(fgComponent) or as fgComponent('name', fgMatrix).
Source: generated/fontgate.py: fgComponent 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) |
baseGlyph |
attribute | Any |
(string) name of base glyph |
box |
attribute | Any |
(fgRect) - bounding box |
draw |
function | (self, object: Any) -> Any |
Draw the object with a segment pen |
drawPoints |
function | (self, object: Any) -> Any |
Draw the object with a point pen |
hasFullMatrix |
attribute | Any |
|
index |
attribute | Any |
(int) component index in glyph's components list |
matrix |
attribute | Any |
(fgMatrix) - component transform matrix |
move |
function | (self, dx: Any, dy: Any) -> Any |
Move by float dx, dy value |
offset |
attribute | Any |
(shared captured text) |
scale |
attribute | Any |
(shared captured text) |