Skip to content

# `fgComponent`

## fontgate.fgComponent = class fgComponent(object)

      Component representation

      Constructors:
        fgComponent() - default
        fgComponent(fgComponent) - copy
        fgComponent('name', fgMatrix) - by 'name' and transformation matrix fgMatrix

#### Methods

__cmp__(...)

      x.__cmp__(y) <==> cmp(x,y)

__delattr__(...)

      x.__delattr__('name') <==> del x.name

__getattribute__(...)

      x.__getattribute__('name') <==> x.name

__init__(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

__repr__(...)

      x.__repr__() <==> repr(x)

__setattr__(...)

      x.__setattr__('name', value) <==> x.name = value

__str__(...)

      x.__str__() <==> str(x)

draw(...)

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

drawPoints(...)

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

move(...)

      move(dx, dy) - move by float dx, dy value

#### Descriptors

baseGlyph

      (string) name of base glyph

box

      (fgRect) - bounding box

hasFullMatrix

index

      (int) component index in glyph's components list

matrix

      (fgMatrix) - component transform matrix

offset

scale

#### Attributes

__new__ = <built-in method __new__ of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

## `baseGlyph`

fontgate.fgComponent.baseGlyph

      (string) name of base glyph

## `box`

fontgate.fgComponent.box

      (fgRect) - bounding box

## `draw`

fontgate.fgComponent.draw = draw(...)

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

## `drawPoints`

fontgate.fgComponent.drawPoints = drawPoints(...)

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

## `index`

fontgate.fgComponent.index

      (int) component index in glyph's components list

## `matrix`

fontgate.fgComponent.matrix

      (fgMatrix) - component transform matrix

## `move`

fontgate.fgComponent.move = move(...)

      move(dx, dy) - move by float dx, dy value