Skip to content

# `fgGlyphData`

## fontgate.fgGlyphData = class fgGlyphData(object)

      GlyphData representation

      Constructors:
        fgGlyphData() - default
        fgGlyphData(fgGlyphData) - copy

#### Methods

OK(...)

      bool OK() - return true if status is gdsOK

__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

bad(...)

      bool bad() - return true if status isn't gdsOK

boundingBox(...)

      fgRect boundingBox(fgGlyphsR, fgMatrix, bool prepareExport) - calculate bounding box

copy(...)

      fgGlyphData copy() - create alone copy of data

countPictures(...)

      int countPictures() - return pictures count

countShapes(...)

      int countShapes() - return shapes count

getFontGateData(...)

      fgFontGateData getFontGateData() - return Nothing

getType(...)

      string getType() - return 'dtTrueType'

hasBody(...)

      bool hasBody(bool prepareExport) - return true if non-empty body layer is present

hasColors(...)

      bool hasColors() - return true if colors is present

hasHints(...)

      bool hasHints() - return true if hints is present

hasPictures(...)

      bool hasPictures() - return true if pictures is present

modified(...)

      bool modified() - return true if data was changed

setParent(...)

      setParent(fgGlyph) - set parent glyph

status(...)

      'gdsOK'/'gdsInvalid' status()

transform(...)

      transform(fgMatrix) - transform data

updated(...)

      updated() - mark data as changed, reset internal caches

#### Attributes

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

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

## `bad`

fontgate.fgGlyphData.bad = bad(...)

      bool bad() - return true if status isn't gdsOK

## `boundingBox`

fontgate.fgGlyphData.boundingBox = boundingBox(...)

      fgRect boundingBox(fgGlyphsR, fgMatrix, bool prepareExport) - calculate bounding box

## `copy`

fontgate.fgGlyphData.copy = copy(...)

      fgGlyphData copy() - create alone copy of data

## `countPictures`

fontgate.fgGlyphData.countPictures = countPictures(...)

      int countPictures() - return pictures count

## `countShapes`

fontgate.fgGlyphData.countShapes = countShapes(...)

      int countShapes() - return shapes count

## `getFontGateData`

fontgate.fgGlyphData.getFontGateData = getFontGateData(...)

      fgFontGateData getFontGateData() - return Nothing

## `getType`

fontgate.fgGlyphData.getType = getType(...)

      string getType() - return 'dtTrueType'

## `hasBody`

fontgate.fgGlyphData.hasBody = hasBody(...)

      bool hasBody(bool prepareExport) - return true if non-empty body layer is present

## `hasColors`

fontgate.fgGlyphData.hasColors = hasColors(...)

      bool hasColors() - return true if colors is present

## `hasHints`

fontgate.fgGlyphData.hasHints = hasHints(...)

      bool hasHints() - return true if hints is present

## `hasPictures`

fontgate.fgGlyphData.hasPictures = hasPictures(...)

      bool hasPictures() - return true if pictures is present

## `modified`

fontgate.fgGlyphData.modified = modified(...)

      bool modified() - return true if data was changed

## `OK`

fontgate.fgGlyphData.OK = OK(...)

      bool OK() - return true if status is gdsOK

## `setParent`

fontgate.fgGlyphData.setParent = setParent(...)

      setParent(fgGlyph) - set parent glyph

## `status`

fontgate.fgGlyphData.status = status(...)

      'gdsOK'/'gdsInvalid' status()

## `transform`

fontgate.fgGlyphData.transform = transform(...)

      transform(fgMatrix) - transform data

## `updated`

fontgate.fgGlyphData.updated = updated(...)

      updated() - mark data as changed, reset internal caches