fgGlyph

fontgate.fgGlyph = class fgGlyph(object)

Glyph representation

Constructors:
  fgGlyph() - default
  fgGlyph(fgGlyph) - copy
  fgGlyph('name') - create by name

Methods

__add__(...)
x.__add__(y) <==> x+y
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__delattr__(...)
x.__delattr__('name') <==> del x.name
__delitem__(...)
x.__delitem__(y) <==> del x[y]
__delslice__(...)
x.__delslice__(i, j) <==> del x[i:j]

Use of negative indices is not supported.
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]

Use of negative indices is not supported.
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__len__(...)
x.__len__() <==> len(x)
__mul__(...)
x.__mul__(n) <==> x*n
__repr__(...)
x.__repr__() <==> repr(x)
__rmul__(...)
x.__rmul__(n) <==> n*x
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setitem__(...)
x.__setitem__(i, y) <==> x[i]=y
__setslice__(...)
x.__setslice__(i, j, y) <==> x[i:j]=y

Use  of negative indices is not supported.
addUnicode(...)
addUnicode(unicode) - add unicode to glyph
append(...)
append(fgGlyph[, mtx=fgMatrix()]) - append contours of source glyph to current glyph
clear(...)
clear(contours=true, components=true, anchors=true, guides=true, hints=true) - clear glyph's data
countPictures(...)
int countPictures() - return count of glyph pictures
createContour(...)
fgContour createContour() - create new contour
createData(...)
(variable type) createData(GlyphDataType) - create glyph data, specified by GlyphDataType. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'
decompose(...)
bool decompose() - decompose glyph
deleteContour(...)
deleteContour(contourIndex) - delete contour by index
draw(...)
draw(penObject[, fgMatrix]) - draw contour by penObject (like fgPen) with transform matrix fgMatrix
fgData(...)
fgFontGateData/Nothing fgData() - get dtFontGate data if it's exist
fgDataCreate(...)
fgFontGateData fgDataCreate() - get dtFontGate data (create new one if missing)
fixComposites(...)
bool fixComposites(fixRotation=false)
getData(...)
(variable type) getData([GlyphDataType='dtFontGate']) - get glyph data, specified by GlyphDataType. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'
getPen(...)
fgPen getPen() - create new pen object
hasBody(...)
bool hasBody() - return True if glyph has contours or picture
hasColors(...)
bool hasColors() - return True if glyph has color pictures
hasData(...)
bool hasData(GlyphDataType) - return True if glyph data, specified by GlyphDataType, is exist. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'
hasHints(...)
bool hasHints() - return True if glyph has hints
hasPictures(...)
bool hasPictures() - return True if glyph has pictures
hasUnicode(...)
bool hasUnicode(unicode) - return True if glyph has specified unicode
keepData(...)
bool keepData(GlyphDataType) - remove all glyph data, except one specified by GlyphDataType. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'
killData(...)
bool killData(GlyphDataType) - remove glyph data, specified by GlyphDataType. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'
killUnicode(...)
killUnicode(unicode) - remove unicode from glyph
modified(...)
modified(GlyphDataType) - inform that glyph data GlyphDataType has been modified. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'
move(...)
move(dx, dy) - move contour by (dx, dy)
removeOverlap(...)
removeOverlap()
setData(...)
setData(GlyphData-like object) - set glyph data
setUnicode(...)
setUnicode(unicode) - assign unicode to glyph
transform(...)
transform(fgMatrix) - transform glyph by fgMatrix data
ttData(...)
fgTrueTypeData/Nothing ttData() - get dtTrueType data if it's exist
ttDataCreate(...)
fgTrueTypeData ttDataCreate() - get dtTrueType data (create new one if missing)
update(...)
update()

Descriptors

activeLayer
(fgLayer) active layer or Nothing if not found
anchors
([ fgAnchor ]) anchor's list
bodyLayer
(fgLayer) layer 'Body' or Nothing if not found
bodyLayerStrict
(fgLayer) layer 'Body' (create one if not found)
box
(fgRect) glyph bounding box (int values)
carets
([ fgCaret ]) caret's list
components
([ fgComponent ]) component's list
dict
(fgGlyphDict) glyph's data dictionary
fbox
(fgRect) glyph bounding box (int/float values)
guides
([ fgGuide ]) guide's list
height
(float) advancedHeight
hints
([ fgHint ]) hint's list
id
(long) glyph ID
image
(fgBitmap) first glyph image
index
(int) glyph index from font.tableIndex
kerningLeft
(int)
kerningRight
(int)
layer
(fgLayer) working layer (if present) or None. Read-only attribute, use layerName='string'|index  to change
layerName
(string) name of the working layer name
layers
([ fgLayer ]) layer's list
leftMargin


lib
(fgLib) additional glyph's data
mark
(int) glyph's mark value
mask
(fgGlyph/Nothing) mask glyph
metrics
(fgPoint) advancedWidth and advancedHeight
name
(string) glyph name
note
(string)
otInfo
(fgOtInfo)
parent
(fgFont) parent font for glyph
rightMargin


unicode
(int/Nothing) first glyph's unicode or Nothing if unicodes aren't defined
unicodes
([ int ]) unicode's list
vsb
(float) vsb
width
(float) advancedWidth

Attributes

__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

activeLayer

fontgate.fgGlyph.activeLayer
(fgLayer) active layer or Nothing if not found

addUnicode

fontgate.fgGlyph.addUnicode = addUnicode(...)
addUnicode(unicode) - add unicode to glyph

anchors

fontgate.fgGlyph.anchors
([ fgAnchor ]) anchor's list

append

fontgate.fgGlyph.append = append(...)
append(fgGlyph[, mtx=fgMatrix()]) - append contours of source glyph to current glyph

bodyLayer

fontgate.fgGlyph.bodyLayer
(fgLayer) layer 'Body' or Nothing if not found

bodyLayerStrict

fontgate.fgGlyph.bodyLayerStrict
(fgLayer) layer 'Body' (create one if not found)

box

fontgate.fgGlyph.box
(fgRect) glyph bounding box (int values)

carets

fontgate.fgGlyph.carets
([ fgCaret ]) caret's list

clear

fontgate.fgGlyph.clear = clear(...)
clear(contours=true, components=true, anchors=true, guides=true, hints=true) - clear glyph's data

components

fontgate.fgGlyph.components
([ fgComponent ]) component's list

countPictures

fontgate.fgGlyph.countPictures = countPictures(...)
int countPictures() - return count of glyph pictures

createContour

fontgate.fgGlyph.createContour = createContour(...)
fgContour createContour() - create new contour

createData

fontgate.fgGlyph.createData = createData(...)
(variable type) createData(GlyphDataType) - create glyph data, specified by GlyphDataType. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'

decompose

fontgate.fgGlyph.decompose = decompose(...)
bool decompose() - decompose glyph

deleteContour

fontgate.fgGlyph.deleteContour = deleteContour(...)
deleteContour(contourIndex) - delete contour by index

dict

fontgate.fgGlyph.dict
(fgGlyphDict) glyph's data dictionary

draw

fontgate.fgGlyph.draw = draw(...)
draw(penObject[, fgMatrix]) - draw contour by penObject (like fgPen) with transform matrix fgMatrix

fbox

fontgate.fgGlyph.fbox
(fgRect) glyph bounding box (int/float values)

fgData

fontgate.fgGlyph.fgData = fgData(...)
fgFontGateData/Nothing fgData() - get dtFontGate data if it's exist

fgDataCreate

fontgate.fgGlyph.fgDataCreate = fgDataCreate(...)
fgFontGateData fgDataCreate() - get dtFontGate data (create new one if missing)

fixComposites

fontgate.fgGlyph.fixComposites = fixComposites(...)
bool fixComposites(fixRotation=false)

getData

fontgate.fgGlyph.getData = getData(...)
(variable type) getData([GlyphDataType='dtFontGate']) - get glyph data, specified by GlyphDataType. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'

getPen

fontgate.fgGlyph.getPen = getPen(...)
fgPen getPen() - create new pen object

guides

fontgate.fgGlyph.guides
([ fgGuide ]) guide's list

hasBody

fontgate.fgGlyph.hasBody = hasBody(...)
bool hasBody() - return True if glyph has contours or picture

hasColors

fontgate.fgGlyph.hasColors = hasColors(...)
bool hasColors() - return True if glyph has color pictures

hasData

fontgate.fgGlyph.hasData = hasData(...)
bool hasData(GlyphDataType) - return True if glyph data, specified by GlyphDataType, is exist. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'

hasHints

fontgate.fgGlyph.hasHints = hasHints(...)
bool hasHints() - return True if glyph has hints

hasPictures

fontgate.fgGlyph.hasPictures = hasPictures(...)
bool hasPictures() - return True if glyph has pictures

hasUnicode

fontgate.fgGlyph.hasUnicode = hasUnicode(...)
bool hasUnicode(unicode) - return True if glyph has specified unicode

height

fontgate.fgGlyph.height
(float) advancedHeight

hints

fontgate.fgGlyph.hints
([ fgHint ]) hint's list

id

fontgate.fgGlyph.id
(long) glyph ID

image

fontgate.fgGlyph.image
(fgBitmap) first glyph image

index

fontgate.fgGlyph.index
(int) glyph index from font.tableIndex

keepData

fontgate.fgGlyph.keepData = keepData(...)
bool keepData(GlyphDataType) - remove all glyph data, except one specified by GlyphDataType. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'

kerningLeft

fontgate.fgGlyph.kerningLeft
(int)

kerningRight

fontgate.fgGlyph.kerningRight
(int)

killData

fontgate.fgGlyph.killData = killData(...)
bool killData(GlyphDataType) - remove glyph data, specified by GlyphDataType. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'

killUnicode

fontgate.fgGlyph.killUnicode = killUnicode(...)
killUnicode(unicode) - remove unicode from glyph

layer

fontgate.fgGlyph.layer
(fgLayer) working layer (if present) or None. Read-only attribute, use layerName='string'|index  to change

layerName

fontgate.fgGlyph.layerName
(string) name of the working layer name

layers

fontgate.fgGlyph.layers
([ fgLayer ]) layer's list

lib

fontgate.fgGlyph.lib
(fgLib) additional glyph's data

mark

fontgate.fgGlyph.mark
(int) glyph's mark value

mask

fontgate.fgGlyph.mask
(fgGlyph/Nothing) mask glyph

metrics

fontgate.fgGlyph.metrics
(fgPoint) advancedWidth and advancedHeight

modified

fontgate.fgGlyph.modified = modified(...)
modified(GlyphDataType) - inform that glyph data GlyphDataType has been modified. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'

move

fontgate.fgGlyph.move = move(...)
move(dx, dy) - move contour by (dx, dy)

name

fontgate.fgGlyph.name
(string) glyph name

note

fontgate.fgGlyph.note
(string)

otInfo

fontgate.fgGlyph.otInfo
(fgOtInfo)

parent

fontgate.fgGlyph.parent
(fgFont) parent font for glyph

removeOverlap

fontgate.fgGlyph.removeOverlap = removeOverlap(...)
removeOverlap()

setData

fontgate.fgGlyph.setData = setData(...)
setData(GlyphData-like object) - set glyph data

setUnicode

fontgate.fgGlyph.setUnicode = setUnicode(...)
setUnicode(unicode) - assign unicode to glyph

transform

fontgate.fgGlyph.transform = transform(...)
transform(fgMatrix) - transform glyph by fgMatrix data

ttData

fontgate.fgGlyph.ttData = ttData(...)
fgTrueTypeData/Nothing ttData() - get dtTrueType data if it's exist

ttDataCreate

fontgate.fgGlyph.ttDataCreate = ttDataCreate(...)
fgTrueTypeData ttDataCreate() - get dtTrueType data (create new one if missing)

unicode

fontgate.fgGlyph.unicode
(int/Nothing) first glyph's unicode or Nothing if unicodes aren't defined

unicodes

fontgate.fgGlyph.unicodes
([ int ]) unicode's list

update

fontgate.fgGlyph.update = update(...)
update()

vsb

fontgate.fgGlyph.vsb
(float) vsb

width

fontgate.fgGlyph.width
(float) advancedWidth