fontgate.fgFont = class fgFont(object)
Font representation
Constructors:
fgFont() - create new empty font
fgFont('font_name') - - create new empty font with name 'font_name'
- __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.
- __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.
- appendFeatures(...)
-
int appendFeatures()
- averageHeight(...)
-
float averageHeight()
- averageWidth(...)
-
float averageWidth()
- boundingBox(...)
-
fgRect boundingBox(fgMatrix)
- calculateSafeZones(...)
-
?
- clearGlyphs(...)
-
clearGlyphs() - remove all glyphs
- createGlyph(...)
-
fgGlyph createGlyph('name'[, int unicode[, bool clearExisting = false]])
- dropLayoutTables(...)
-
dropLayoutTables()
- fixOrdering(...)
-
bool fixOrdering(float upm[, sortMethod='sortUnicode']) - sort glyphs by selected method. Methods are 'sortNone', 'sortName', 'sortUnicode', 'sortIndex', 'sortIndexReverse'
- hasPictures(...)
-
bool hasPictures()
- 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)
- sortGlyphs(...)
-
sortGlyphs(sortMethod) - sort glyphs. sortMethod: 'sortNone'/'sortName'/'sortUnicode'/'sortIndex'/'sortIndexReverse'
- 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
- __new__ = <built-in method __new__ of type object>
-
T.__new__(S, ...) -> a new object with type S, a subtype of T
- fontgate.fgFont.addGlyph = addGlyph(...)
-
fgGlyph addGlyph(fgGlyph)
- fontgate.fgFont.appendFeatures = appendFeatures(...)
-
int appendFeatures()
- fontgate.fgFont.averageHeight = averageHeight(...)
-
float averageHeight()
- fontgate.fgFont.averageWidth = averageWidth(...)
-
float averageWidth()
- fontgate.fgFont.axes
-
(fgAxes) axes info
- fontgate.fgFont.boundingBox = boundingBox(...)
-
fgRect boundingBox(fgMatrix)
- fontgate.fgFont.calculateSafeZones = calculateSafeZones(...)
-
?
- fontgate.fgFont.checkMaps = checkMaps(...)
-
checkMaps()
- fontgate.fgFont.clearGlyphs = clearGlyphs(...)
-
clearGlyphs() - remove all glyphs
- fontgate.fgFont.clearMaps = clearMaps(...)
-
clearMaps() - force clear all font internal caches
- fontgate.fgFont.coding
-
(fgCoding) encoding info
- fontgate.fgFont.copyFrom = copyFrom(...)
-
copyFrom(fgFont sourceFont) - copy all data and glyphs from source font
- fontgate.fgFont.createGlyph = createGlyph(...)
-
fgGlyph createGlyph('name'[, int unicode[, bool clearExisting = false]])
- fontgate.fgFont.dropHintingTables = dropHintingTables(...)
-
dropHintingTables()
- fontgate.fgFont.dropLayoutTables = dropLayoutTables(...)
-
dropLayoutTables()
- fontgate.fgFont.features
-
(fgOTLayout) features data
- fontgate.fgFont.fixOrdering = fixOrdering(...)
-
bool fixOrdering(float upm[, sortMethod='sortUnicode']) - sort glyphs by selected method. Methods are 'sortNone', 'sortName', 'sortUnicode', 'sortIndex', 'sortIndexReverse'
- fontgate.fgFont.glyphs
-
([fgGlyph]) font glyphs list
- fontgate.fgFont.groups
-
(fgGroups) glyph groups list
- fontgate.fgFont.guides
-
(fgGuides) guides list
- fontgate.fgFont.has_key = has_key(...)
-
bool has_key('name') - return true if font contains glyph with name 'name'
- fontgate.fgFont.hasColors = hasColors(...)
-
bool hasColors()
- fontgate.fgFont.hasPictures = hasPictures(...)
-
bool hasPictures()
- fontgate.fgFont.hinting
-
(fgFontHinting) hinting info
- fontgate.fgFont.hints
-
(fgHints) hints list for font 'Body' layer
- fontgate.fgFont.id
-
(long) package id
- fontgate.fgFont.info
-
(fgFontInfo) font info data
- fontgate.fgFont.items = items(...)
-
[('name', fgGlyph)] items() - returns a list of font's ('name', fgGlyph) tuple pairs
- fontgate.fgFont.kerning
-
(fgKerning) kerning data
- fontgate.fgFont.keys = keys(...)
-
['names'] keys() - return list of names of all glyphs in the font
- fontgate.fgFont.killUnicode = killUnicode(...)
-
killUnicode(unicode) - remove selected unicode from all glyph unicodes lists
- fontgate.fgFont.lib
-
(fgLib) additional font data
- fontgate.fgFont.master
-
(fgLayer) font master layer
- fontgate.fgFont.metricsClasses
-
(fgMetricsClasses) list of metrics classes
- fontgate.fgFont.path
-
(string) path and font file name
- fontgate.fgFont.rebuildMaps = rebuildMaps(...)
-
rebuildMaps() - force clear and rebuild all font internal caches
- fontgate.fgFont.removeGlyph = removeGlyph(...)
-
bool/Nothing removeGlyph('name'/unicode) - remove glyph selected by 'name' or unicode (int)
- fontgate.fgFont.save = save(...)
-
save('path/filename'[, bool save_vfb=false]) - save font in UFO or VFB format
- fontgate.fgFont.scale = scale(...)
-
scale(float) - scale font UPM
- fontgate.fgFont.shapes
-
(fgMapShapes) font shapes map
- fontgate.fgFont.sortGlyphs = sortGlyphs(...)
-
sortGlyphs(sortMethod) - sort glyphs. sortMethod: 'sortNone'/'sortName'/'sortUnicode'/'sortIndex'/'sortIndexReverse'
- fontgate.fgFont.tables
-
(fgMapBytes) raw OT tables data
- fontgate.fgFont.translatedNames
-
([tuples]) raw style->names.translated data
- fontgate.fgFont.update = update(...)
-
update() - force rebuild font chaches and request font update
- fontgate.fgFont.values = values(...)
-
[fgGlyph] values() - returns list of font's fgGlyph