fgFont

fontgate.fgFont = class fgFont(object)

Font representation

Constructors:
  fgFont() - create new empty font
  fgFont('font_name') -  - create new empty font with name 'font_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.
addGlyph(...)
fgGlyph addGlyph(fgGlyph)
appendFeatures(...)
int appendFeatures()
averageHeight(...)
float averageHeight()
averageWidth(...)
float averageWidth()
boundingBox(...)
fgRect boundingBox(fgMatrix)
calculateSafeZones(...)
?
checkMaps(...)
checkMaps()
clearGlyphs(...)
clearGlyphs() - remove all glyphs
clearMaps(...)
clearMaps() - force clear all font internal caches
copyFrom(...)
copyFrom(fgFont sourceFont) - copy all data and glyphs from source font
createGlyph(...)
fgGlyph createGlyph('name'[, int unicode[, bool clearExisting = false]])
dropHintingTables(...)
dropHintingTables()
dropLayoutTables(...)
dropLayoutTables()
fixOrdering(...)
bool fixOrdering(float upm[, sortMethod='sortUnicode']) - sort glyphs by selected method. Methods are 'sortNone', 'sortName', 'sortUnicode', 'sortIndex', 'sortIndexReverse'
hasColors(...)
bool hasColors()
hasPictures(...)
bool hasPictures()
has_key(...)
bool has_key('name') - return true if font contains glyph with name 'name'
items(...)
[('name', fgGlyph)] items() - returns a list of font's ('name', fgGlyph) tuple pairs
keys(...)
['names'] keys() - return list of names of all glyphs in the font
killUnicode(...)
killUnicode(unicode) - remove selected unicode from all glyph unicodes lists
rebuildMaps(...)
rebuildMaps() - force clear and rebuild all font internal caches
removeGlyph(...)
bool/Nothing removeGlyph('name'/unicode) - remove glyph selected by 'name' or unicode (int)
save(...)
save('path/filename'[, bool save_vfb=false]) - save font in UFO or VFB format
scale(...)
scale(float) - scale font UPM
sortGlyphs(...)
sortGlyphs(sortMethod) - sort glyphs. sortMethod: 'sortNone'/'sortName'/'sortUnicode'/'sortIndex'/'sortIndexReverse'
update(...)
update() - force rebuild font chaches and request font update
values(...)
[fgGlyph] values() - returns list of font's fgGlyph

Descriptors

axes
(fgAxes) axes info
coding
(fgCoding) encoding info
features
(fgOTLayout) features data
glyphs
([fgGlyph]) font glyphs list
groups
(fgGroups) glyph groups list
guides
(fgGuides) guides list
hinting
(fgFontHinting) hinting info
hints
(fgHints) hints list for font 'Body' layer
id
(long) package id
info
(fgFontInfo) font info data
kerning
(fgKerning) kerning data
lib
(fgLib) additional font data
master
(fgLayer) font master layer
metricsClasses
(fgMetricsClasses) list of metrics classes
path
(string) path and font file name
shapes
(fgMapShapes) font shapes map
tables
(fgMapBytes) raw OT tables data
translatedNames
([tuples]) raw style->names.translated data

Attributes

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

addGlyph

fontgate.fgFont.addGlyph = addGlyph(...)
fgGlyph addGlyph(fgGlyph)

appendFeatures

fontgate.fgFont.appendFeatures = appendFeatures(...)
int appendFeatures()

averageHeight

fontgate.fgFont.averageHeight = averageHeight(...)
float averageHeight()

averageWidth

fontgate.fgFont.averageWidth = averageWidth(...)
float averageWidth()

axes

fontgate.fgFont.axes
(fgAxes) axes info

boundingBox

fontgate.fgFont.boundingBox = boundingBox(...)
fgRect boundingBox(fgMatrix)

calculateSafeZones

fontgate.fgFont.calculateSafeZones = calculateSafeZones(...)
?

checkMaps

fontgate.fgFont.checkMaps = checkMaps(...)
checkMaps()

clearGlyphs

fontgate.fgFont.clearGlyphs = clearGlyphs(...)
clearGlyphs() - remove all glyphs

clearMaps

fontgate.fgFont.clearMaps = clearMaps(...)
clearMaps() - force clear all font internal caches

coding

fontgate.fgFont.coding
(fgCoding) encoding info

copyFrom

fontgate.fgFont.copyFrom = copyFrom(...)
copyFrom(fgFont sourceFont) - copy all data and glyphs from source font

createGlyph

fontgate.fgFont.createGlyph = createGlyph(...)
fgGlyph createGlyph('name'[, int unicode[, bool clearExisting = false]])

dropHintingTables

fontgate.fgFont.dropHintingTables = dropHintingTables(...)
dropHintingTables()

dropLayoutTables

fontgate.fgFont.dropLayoutTables = dropLayoutTables(...)
dropLayoutTables()

features

fontgate.fgFont.features
(fgOTLayout) features data

fixOrdering

fontgate.fgFont.fixOrdering = fixOrdering(...)
bool fixOrdering(float upm[, sortMethod='sortUnicode']) - sort glyphs by selected method. Methods are 'sortNone', 'sortName', 'sortUnicode', 'sortIndex', 'sortIndexReverse'

glyphs

fontgate.fgFont.glyphs
([fgGlyph]) font glyphs list

groups

fontgate.fgFont.groups
(fgGroups) glyph groups list

guides

fontgate.fgFont.guides
(fgGuides) guides list

has_key

fontgate.fgFont.has_key = has_key(...)
bool has_key('name') - return true if font contains glyph with name 'name'

hasColors

fontgate.fgFont.hasColors = hasColors(...)
bool hasColors()

hasPictures

fontgate.fgFont.hasPictures = hasPictures(...)
bool hasPictures()

hinting

fontgate.fgFont.hinting
(fgFontHinting) hinting info

hints

fontgate.fgFont.hints
(fgHints) hints list for font 'Body' layer

id

fontgate.fgFont.id
(long) package id

info

fontgate.fgFont.info
(fgFontInfo) font info data

items

fontgate.fgFont.items = items(...)
[('name', fgGlyph)] items() - returns a list of font's ('name', fgGlyph) tuple pairs

kerning

fontgate.fgFont.kerning
(fgKerning) kerning data

keys

fontgate.fgFont.keys = keys(...)
['names'] keys() - return list of names of all glyphs in the font

killUnicode

fontgate.fgFont.killUnicode = killUnicode(...)
killUnicode(unicode) - remove selected unicode from all glyph unicodes lists

lib

fontgate.fgFont.lib
(fgLib) additional font data

master

fontgate.fgFont.master
(fgLayer) font master layer

metricsClasses

fontgate.fgFont.metricsClasses
(fgMetricsClasses) list of metrics classes

path

fontgate.fgFont.path
(string) path and font file name

rebuildMaps

fontgate.fgFont.rebuildMaps = rebuildMaps(...)
rebuildMaps() - force clear and rebuild all font internal caches

removeGlyph

fontgate.fgFont.removeGlyph = removeGlyph(...)
bool/Nothing removeGlyph('name'/unicode) - remove glyph selected by 'name' or unicode (int)

save

fontgate.fgFont.save = save(...)
save('path/filename'[, bool save_vfb=false]) - save font in UFO or VFB format

scale

fontgate.fgFont.scale = scale(...)
scale(float) - scale font UPM

shapes

fontgate.fgFont.shapes
(fgMapShapes) font shapes map

sortGlyphs

fontgate.fgFont.sortGlyphs = sortGlyphs(...)
sortGlyphs(sortMethod) - sort glyphs. sortMethod: 'sortNone'/'sortName'/'sortUnicode'/'sortIndex'/'sortIndexReverse'

tables

fontgate.fgFont.tables
(fgMapBytes) raw OT tables data

translatedNames

fontgate.fgFont.translatedNames
([tuples]) raw style->names.translated data

update

fontgate.fgFont.update = update(...)
update() - force rebuild font chaches and request font update

values

fontgate.fgFont.values = values(...)
[fgGlyph] values() - returns list of font's fgGlyph