Skip to content

# `flGlyph`

## fontlab.flGlyph = class flGlyph(object)

      flGlyph representation

      Constructors:
        flGlyph()
        flGlyph(flGlyph)
        flGlyph(flObject)
        flGlyph(fgGlyph, fgFont)

#### Methods

__delattr__(...)

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

__eq__(...)

      x.__eq__(y) <==> x==y

__ge__(...)

      x.__ge__(y) <==> x>=y

__getattribute__(...)

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

__gt__(...)

      x.__gt__(y) <==> x>y

__init__(...)

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

__le__(...)

      x.__le__(y) <==> x<=y

__lt__(...)

      x.__lt__(y) <==> x

__ne__(...)

      x.__ne__(y) <==> x!=y

__repr__(...)

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

__setattr__(...)

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

addLayer(...)

      void addLayer(flLayer[, bool back = false])

addLayers(...)

      void addLayers(list(flLayer))

applyTransform(...)

      applyTransform([QTransform transform])

assignFontGateData(...)

      void assignFontGateData(fgFontGateData, bool doGuide = true, bool doHints = true, bool doAnchors = true)

bindDependencies(...)

      bindDependencies()

changed(...)

      changed()

checkInitHistoryState(...)

      checkInitHistoryState(uint history_ix)

clearAboveHistory(...)

      clearAboveHistory(uint history_ix)

clearFlag(...)

      clearFlag(uint f)

clearFlags(...)

      clearFlags()

clone(...)

      Clone the object

createHistoryState(...)

      createHistoryState(uint history_ix)

currentHistoryState(...)

      currentHistoryIx()

deactivateAll(...)

      deactivateAll()

ensureMaskLayer(...)

      flLayer ensureMaskLayer()

fillFgData(...)

      fgFontGateData fillFgData(bool doGuides, bool doHints)

findLayer(...)

      flLayer findLayer(QString name[, Qt::CaseSensitivity cs = Qt::CaseSensitive])

findLayerCreate(...)

      flLayer findLayerCreate(QString name[, Qt::CaseSensitivity cs = Qt::CaseSensitive])

findVerticalGuideline(...)

      double/Nothing findVerticalGuideline(QString)

flag(...)

      flag(uint f)

getAuditInfo(...)

      list(flAuditInfo) getAuditInfo()

getFastFontGateData(...)

      fgFontGateData getFastFontGateData()

getLSB(...)

      double getLSB(QTransform tr)

getLayerByName(...)

      flLayer getLayerByName(QString[, bool create =false])

getProperties(...)

      Get object's properties list

getProperty(...)

      getProperty('key') - get object property by 'key' or number

getPropertyFloat(...)

      getPropertyFloat('key') - get float object property by 'key'

getPropertyInt(...)

      getPropertyInt('key') - get int object property by 'key'

getRSB(...)

      double getRSB(QTransform tr)

getSB(...)

      (double l, double r) getSB(QTransform tr)

glyphName(...)

      QString glyphName()

hasFontAudit(...)

      bool hasFontAudit()

hasHistoryState(...)

      hasHistoryState(uint history_ix)

haveSelected(...)

      bool haveSelected(SelectionMode)

historyStates(...)

      historyStates(bool accepted_state)

horzReflection(...)

      bool horzReflection()

independedAll(...)

      independedAll()

initialHistoryState(...)

      initialHistoryIx()

inkBox(...)

      QRectF inkBox([QTransform tx = QTransform()])

isEqual(...)

      isEqual(flObject)

isUnbindedDependecies(...)

      bool isUnbindedDependecies()

issele(...)

      void issele(bool)

measurementLine(...)

      double/Nothing measurementLine()

prepareTransformationData(...)

      prepareTransformationData()

release(...)

      release()

remove(...)

      remove([flObject])

removeChild(...)

      removeChild(flObject)

removeEmptyShapes(...)

      removeEmptyShapes()

removeLayer(...)

      void removeLayer(flLayer)

removeProperty(...)

      removeProperty('key')

resetInkBox(...)

      resetInkBox()

resetTransformationData(...)

      resetTransformationData()

restoreHistoryState(...)

      restoreHistoryState(uint history_ix)

setAllShapesSelected(...)

      setAllShapesSelected(bool)

setFlag(...)

      setFlag(uint f [, bool value])

setLSB(...)

      bool setLSB(double v, bool move_guidelines, QTransform tr)

setLayers(...)

      void setLayers(list(flLayer))

setProperty(...)

      setProperty('key', value) - set object property by 'key' or number

setPropertyFloat(...)

      setPropertyFloat('key', value) - set float object property by 'key'

setPropertyInt(...)

      setPropertyInt('key', value) - set int object property by 'key'

setRSB(...)

      bool setRSB(double v, QTransform tr)

setReflected(...)

      setReflected(bool, bool)

setSB(...)

      bool setSB(double l, double r, bool move_guidelines, bool all_layers, QTransform tr)

tag(...)

      tag([string])

unselectAllNodes(...)

      unselectAllNodes()

update(...)

      update()

updateActiveLayer(...)

      flLayer updateActiveLayer(bool)

updateAudit(...)

      void updateAudit(list(int))

updateSidebearings(...)

      bool updateSidebearings(bool nofify)

vertReflection(...)

      bool vertReflection()

virtualTags(...)

      QSet/Nothing virtualTags()

#### Static methods

clearUpdateFgGlyphs(...)

      clearUpdateFgGlyphs()

cloneObject(...)

      flObject cloneObject(const flObject&);

createInstance(...)

      flGlyph createInstance()

createObject(...)

      flObject/Nothing createObject(int);

ensureFgData(...)

      fgFontGateData ensureFgData(fgGlyph)

hasInstance(...)

      bool hasInstance(fgGlyph)

haveObject(...)

      bool haveObject(uint);

instanceType(...)

      int instanceType();

linkInstances(...)

      bool linkInstances(flGlyph, fgGlyph)

updateFgGlyph(...)

      updateFgGlyph(uint id)

updatedFgGlyphs(...)

      list(uint32_t) updatedFgGlyphs()

#### Descriptors

activeLayer

      flLayer

advanceWidth

      double

ascender

      double

bodyLayer

      flLayer

bodyRect

      QRectF

boundingBox

      QRectF

descender

      double

fgGlyph

      fgGlyph

fgGlyphId

      FgTypeId

fgPackage

      fgFont

getStateObject

      flObject

glyphRect

      QRectF

hasBody

      bool

hasChanges

      bool

hasHistoryStates

      bool

id

      object id

isChanged

      bool

isNull

      bool

isPresent

      bool

isReleased

      bool

isValid

      bool

lastModified

      QDateTime

layers

      list(flLayer)

leftMetric

      QPointF

mark

      int

metricsLeft

      QString

metricsRect

      QRectF

metricsRight

      QString

metricsWidth

      QString

name

      QString

nodesCount

      int

note

      QString

package

      flObject

refCnt

      object references count

rightMetric

      QPointF

tags

      QStringList

type

      object type

#### Attributes

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

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

flObjectFlags = {'ofAnchored': 64, 'ofChanged': 2, 'ofHistory': 128, 'ofIgnore': 8, 'ofIgnoreChanges': 4, 'ofPassive': 16, 'ofReleased': 1, 'ofSlowUpdate': 32}

## `activeLayer`

fontlab.flGlyph.activeLayer

      flLayer

## `addLayer`

fontlab.flGlyph.addLayer = addLayer(...)

      void addLayer(flLayer[, bool back = false])

## `addLayers`

fontlab.flGlyph.addLayers = addLayers(...)

      void addLayers(list(flLayer))

## `advanceWidth`

fontlab.flGlyph.advanceWidth

      double

## `applyTransform`

fontlab.flGlyph.applyTransform = applyTransform(...)

      applyTransform([QTransform transform])

## `ascender`

fontlab.flGlyph.ascender

      double

## `assignFontGateData`

fontlab.flGlyph.assignFontGateData = assignFontGateData(...)

      void assignFontGateData(fgFontGateData, bool doGuide = true, bool doHints = true, bool doAnchors = true)

## `bindDependencies`

fontlab.flGlyph.bindDependencies = bindDependencies(...)

      bindDependencies()

## `bodyLayer`

fontlab.flGlyph.bodyLayer

      flLayer

## `bodyRect`

fontlab.flGlyph.bodyRect

      QRectF

## `boundingBox`

fontlab.flGlyph.boundingBox

      QRectF

## `changed`

fontlab.flGlyph.changed = changed(...)

      changed()

## `checkInitHistoryState`

fontlab.flGlyph.checkInitHistoryState = checkInitHistoryState(...)

      checkInitHistoryState(uint history_ix)

## `clearAboveHistory`

fontlab.flGlyph.clearAboveHistory = clearAboveHistory(...)

      clearAboveHistory(uint history_ix)

## `clearFlag`

fontlab.flGlyph.clearFlag = clearFlag(...)

      clearFlag(uint f)

## `clearFlags`

fontlab.flGlyph.clearFlags = clearFlags(...)

      clearFlags()

## `clearUpdateFgGlyphs`

fontlab.flGlyph.clearUpdateFgGlyphs = clearUpdateFgGlyphs(...)

      clearUpdateFgGlyphs()

## `clone`

fontlab.flGlyph.clone = clone(...)

      Clone the object

## `cloneObject`

fontlab.flGlyph.cloneObject = cloneObject(...)

      flObject cloneObject(const flObject&);

## `createHistoryState`

fontlab.flGlyph.createHistoryState = createHistoryState(...)

      createHistoryState(uint history_ix)

## `createInstance`

fontlab.flGlyph.createInstance = createInstance(...)

      flGlyph createInstance()

## `createObject`

fontlab.flGlyph.createObject = createObject(...)

      flObject/Nothing createObject(int);

## `currentHistoryState`

fontlab.flGlyph.currentHistoryState = currentHistoryState(...)

      currentHistoryIx()

## `deactivateAll`

fontlab.flGlyph.deactivateAll = deactivateAll(...)

      deactivateAll()

## `descender`

fontlab.flGlyph.descender

      double

## `ensureFgData`

fontlab.flGlyph.ensureFgData = ensureFgData(...)

      fgFontGateData ensureFgData(fgGlyph)

## `ensureMaskLayer`

fontlab.flGlyph.ensureMaskLayer = ensureMaskLayer(...)

      flLayer ensureMaskLayer()

## `fgGlyph`

fontlab.flGlyph.fgGlyph

      fgGlyph

## `fgGlyphId`

fontlab.flGlyph.fgGlyphId

      FgTypeId

## `fgPackage`

fontlab.flGlyph.fgPackage

      fgFont

## `fillFgData`

fontlab.flGlyph.fillFgData = fillFgData(...)

      fgFontGateData fillFgData(bool doGuides, bool doHints)

## `findLayer`

fontlab.flGlyph.findLayer = findLayer(...)

      flLayer findLayer(QString name[, Qt::CaseSensitivity cs = Qt::CaseSensitive])

## `findLayerCreate`

fontlab.flGlyph.findLayerCreate = findLayerCreate(...)

      flLayer findLayerCreate(QString name[, Qt::CaseSensitivity cs = Qt::CaseSensitive])

## `findVerticalGuideline`

fontlab.flGlyph.findVerticalGuideline = findVerticalGuideline(...)

      double/Nothing findVerticalGuideline(QString)

## `flag`

fontlab.flGlyph.flag = flag(...)

      flag(uint f)

## `flObjectFlags`

fontlab.flGlyph.flObjectFlags = {'ofAnchored': 64, 'ofChanged': 2, 'ofHistory': 128, 'ofIgnore': 8, 'ofIgnoreChanges': 4, 'ofPassive': 16, 'ofReleased': 1, 'ofSlowUpdate': 32}

## `getAuditInfo`

fontlab.flGlyph.getAuditInfo = getAuditInfo(...)

      list(flAuditInfo) getAuditInfo()

## `getFastFontGateData`

fontlab.flGlyph.getFastFontGateData = getFastFontGateData(...)

      fgFontGateData getFastFontGateData()

## `getLayerByName`

fontlab.flGlyph.getLayerByName = getLayerByName(...)

      flLayer getLayerByName(QString[, bool create =false])

## `getLSB`

fontlab.flGlyph.getLSB = getLSB(...)

      double getLSB(QTransform tr)

## `getProperties`

fontlab.flGlyph.getProperties = getProperties(...)

      Get object's properties list

## `getProperty`

fontlab.flGlyph.getProperty = getProperty(...)

      getProperty('key') - get object property by 'key' or number

## `getPropertyFloat`

fontlab.flGlyph.getPropertyFloat = getPropertyFloat(...)

      getPropertyFloat('key') - get float object property by 'key'

## `getPropertyInt`

fontlab.flGlyph.getPropertyInt = getPropertyInt(...)

      getPropertyInt('key') - get int object property by 'key'

## `getRSB`

fontlab.flGlyph.getRSB = getRSB(...)

      double getRSB(QTransform tr)

## `getSB`

fontlab.flGlyph.getSB = getSB(...)

      (double l, double r) getSB(QTransform tr)

## `getStateObject`

fontlab.flGlyph.getStateObject

      flObject

## `glyphName`

fontlab.flGlyph.glyphName = glyphName(...)

      QString glyphName()

## `glyphRect`

fontlab.flGlyph.glyphRect

      QRectF

## `hasBody`

fontlab.flGlyph.hasBody

      bool

## `hasChanges`

fontlab.flGlyph.hasChanges

      bool

## `hasFontAudit`

fontlab.flGlyph.hasFontAudit = hasFontAudit(...)

      bool hasFontAudit()

## `hasHistoryState`

fontlab.flGlyph.hasHistoryState = hasHistoryState(...)

      hasHistoryState(uint history_ix)

## `hasHistoryStates`

fontlab.flGlyph.hasHistoryStates

      bool

## `hasInstance`

fontlab.flGlyph.hasInstance = hasInstance(...)

      bool hasInstance(fgGlyph)

## `haveObject`

fontlab.flGlyph.haveObject = haveObject(...)

      bool haveObject(uint);

## `haveSelected`

fontlab.flGlyph.haveSelected = haveSelected(...)

      bool haveSelected(SelectionMode)

## `historyStates`

fontlab.flGlyph.historyStates = historyStates(...)

      historyStates(bool accepted_state)

## `horzReflection`

fontlab.flGlyph.horzReflection = horzReflection(...)

      bool horzReflection()

## `id`

fontlab.flGlyph.id

      object id

## `independedAll`

fontlab.flGlyph.independedAll = independedAll(...)

      independedAll()

## `initialHistoryState`

fontlab.flGlyph.initialHistoryState = initialHistoryState(...)

      initialHistoryIx()

## `inkBox`

fontlab.flGlyph.inkBox = inkBox(...)

      QRectF inkBox([QTransform tx = QTransform()])

## `instanceType`

fontlab.flGlyph.instanceType = instanceType(...)

      int instanceType();

## `isChanged`

fontlab.flGlyph.isChanged

      bool

## `isEqual`

fontlab.flGlyph.isEqual = isEqual(...)

      isEqual(flObject)

## `isNull`

fontlab.flGlyph.isNull

      bool

## `isPresent`

fontlab.flGlyph.isPresent

      bool

## `isReleased`

fontlab.flGlyph.isReleased

      bool

## `issele`

fontlab.flGlyph.issele = issele(...)

      void issele(bool)

## `isUnbindedDependecies`

fontlab.flGlyph.isUnbindedDependecies = isUnbindedDependecies(...)

      bool isUnbindedDependecies()

## `isValid`

fontlab.flGlyph.isValid

      bool

## `lastModified`

fontlab.flGlyph.lastModified

      QDateTime

## `layers`

fontlab.flGlyph.layers

      list(flLayer)

## `leftMetric`

fontlab.flGlyph.leftMetric

      QPointF

## `linkInstances`

fontlab.flGlyph.linkInstances = linkInstances(...)

      bool linkInstances(flGlyph, fgGlyph)

## `mark`

fontlab.flGlyph.mark

      int

## `measurementLine`

fontlab.flGlyph.measurementLine = measurementLine(...)

      double/Nothing measurementLine()

## `metricsLeft`

fontlab.flGlyph.metricsLeft

      QString

## `metricsRect`

fontlab.flGlyph.metricsRect

      QRectF

## `metricsRight`

fontlab.flGlyph.metricsRight

      QString

## `metricsWidth`

fontlab.flGlyph.metricsWidth

      QString

## `name`

fontlab.flGlyph.name

      QString

## `nodesCount`

fontlab.flGlyph.nodesCount

      int

## `note`

fontlab.flGlyph.note

      QString

## `package`

fontlab.flGlyph.package

      flObject

## `prepareTransformationData`

fontlab.flGlyph.prepareTransformationData = prepareTransformationData(...)

      prepareTransformationData()

## `refCnt`

fontlab.flGlyph.refCnt

      object references count

## `release`

fontlab.flGlyph.release = release(...)

      release()

## `remove`

fontlab.flGlyph.remove = remove(...)

      remove([flObject])

## `removeChild`

fontlab.flGlyph.removeChild = removeChild(...)

      removeChild(flObject)

## `removeEmptyShapes`

fontlab.flGlyph.removeEmptyShapes = removeEmptyShapes(...)

      removeEmptyShapes()

## `removeLayer`

fontlab.flGlyph.removeLayer = removeLayer(...)

      void removeLayer(flLayer)

## `removeProperty`

fontlab.flGlyph.removeProperty = removeProperty(...)

      removeProperty('key')

## `resetInkBox`

fontlab.flGlyph.resetInkBox = resetInkBox(...)

      resetInkBox()

## `resetTransformationData`

fontlab.flGlyph.resetTransformationData = resetTransformationData(...)

      resetTransformationData()

## `restoreHistoryState`

fontlab.flGlyph.restoreHistoryState = restoreHistoryState(...)

      restoreHistoryState(uint history_ix)

## `rightMetric`

fontlab.flGlyph.rightMetric

      QPointF

## `setAllShapesSelected`

fontlab.flGlyph.setAllShapesSelected = setAllShapesSelected(...)

      setAllShapesSelected(bool)

## `setFlag`

fontlab.flGlyph.setFlag = setFlag(...)

      setFlag(uint f [, bool value])

## `setLayers`

fontlab.flGlyph.setLayers = setLayers(...)

      void setLayers(list(flLayer))

## `setLSB`

fontlab.flGlyph.setLSB = setLSB(...)

      bool setLSB(double v, bool move_guidelines, QTransform tr)

## `setProperty`

fontlab.flGlyph.setProperty = setProperty(...)

      setProperty('key', value) - set object property by 'key' or number

## `setPropertyFloat`

fontlab.flGlyph.setPropertyFloat = setPropertyFloat(...)

      setPropertyFloat('key', value) - set float object property by 'key'

## `setPropertyInt`

fontlab.flGlyph.setPropertyInt = setPropertyInt(...)

      setPropertyInt('key', value) - set int object property by 'key'

## `setReflected`

fontlab.flGlyph.setReflected = setReflected(...)

      setReflected(bool, bool)

## `setRSB`

fontlab.flGlyph.setRSB = setRSB(...)

      bool setRSB(double v, QTransform tr)

## `setSB`

fontlab.flGlyph.setSB = setSB(...)

      bool setSB(double l, double r, bool move_guidelines, bool all_layers, QTransform tr)

## `tag`

fontlab.flGlyph.tag = tag(...)

      tag([string])

## `tags`

fontlab.flGlyph.tags

      QStringList

## `type`

fontlab.flGlyph.type

      object type

## `unselectAllNodes`

fontlab.flGlyph.unselectAllNodes = unselectAllNodes(...)

      unselectAllNodes()

## `update`

fontlab.flGlyph.update = update(...)

      update()

## `updateActiveLayer`

fontlab.flGlyph.updateActiveLayer = updateActiveLayer(...)

      flLayer updateActiveLayer(bool)

## `updateAudit`

fontlab.flGlyph.updateAudit = updateAudit(...)

      void updateAudit(list(int))

## `updatedFgGlyphs`

fontlab.flGlyph.updatedFgGlyphs = updatedFgGlyphs(...)

      list(uint32_t) updatedFgGlyphs()

## `updateFgGlyph`

fontlab.flGlyph.updateFgGlyph = updateFgGlyph(...)

      updateFgGlyph(uint id)

## `updateSidebearings`

fontlab.flGlyph.updateSidebearings = updateSidebearings(...)

      bool updateSidebearings(bool nofify)

## `vertReflection`

fontlab.flGlyph.vertReflection = vertReflection(...)

      bool vertReflection()

## `virtualTags`

fontlab.flGlyph.virtualTags = virtualTags(...)

      QSet/Nothing virtualTags()