Skip to content

fontgate.fgFont · declarations 001

Back to fontgate.fgFont

addGlyph

addGlyph(arg0: fgGlyph) -> fgGlyph

fgGlyph addGlyph(fgGlyph)

appendFeatures

appendFeatures() -> int

int appendFeatures()

averageHeight

averageHeight() -> float

float averageHeight()

averageWidth

averageWidth() -> float

float averageWidth()

axes instance-attribute

axes: Any

(fgAxes) axes info

boundingBox

boundingBox(arg0: fgMatrix) -> fgRect

fgRect boundingBox(fgMatrix)

calculateSafeZones

calculateSafeZones(*args: Any, **kwargs: Any) -> Any

?

checkMaps

checkMaps() -> Any

checkMaps()

clearGlyphs

clearGlyphs() -> Any

clearGlyphs() - remove all glyphs

clearMaps

clearMaps() -> Any

clearMaps() - force clear all font internal caches

coding instance-attribute

coding: Any

(fgCoding) encoding info

copyFrom

copyFrom(sourceFont: fgFont) -> Any

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

createGlyph

createGlyph(clearExisting: Any = ...) -> fgGlyph

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

dropHintingTables

dropHintingTables() -> Any

dropHintingTables()

dropLayoutTables

dropLayoutTables() -> Any

dropLayoutTables()

features instance-attribute

features: Any

(fgOTLayout) features data

fixOrdering

fixOrdering(sortMethod: Any = ...) -> bool

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

glyphs instance-attribute

glyphs: Any

([fgGlyph]) font glyphs list

groups instance-attribute

groups: Any

(fgGroups) glyph groups list

guides instance-attribute

guides: Any

(fgGuides) guides list

hasColors

hasColors() -> bool

bool hasColors()

hasPictures

hasPictures() -> bool

bool hasPictures()

has_key

has_key(*args: Any, **kwargs: Any) -> Any

bool has_key('name') - return true if font contains glyph with name 'name'

hinting instance-attribute

hinting: Any

(fgFontHinting) hinting info

hints instance-attribute

hints: Any

(fgHints) hints list for font 'Body' layer

id instance-attribute

id: Any

(long) package id

info instance-attribute

info: Any

(fgFontInfo) font info data

items

items() -> Any

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

kerning instance-attribute

kerning: Any

(fgKerning) kerning data

keys

keys() -> Any

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

killUnicode

killUnicode(unicode: Any) -> Any

killUnicode(unicode) - remove selected unicode from all glyph unicodes lists

lib instance-attribute

lib: Any

(fgLib) additional font data

master instance-attribute

master: Any

(fgLayer) font master layer

metricsClasses instance-attribute

metricsClasses: Any

(fgMetricsClasses) list of metrics classes

path instance-attribute

path: Any

(string) path and font file name

rebuildMaps

rebuildMaps() -> Any

rebuildMaps() - force clear and rebuild all font internal caches

removeGlyph

removeGlyph(*args: Any, **kwargs: Any) -> Any

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

save

save(save_vfb: Any = ...) -> Any

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

scale

scale(arg0: float) -> Any

scale(float) - scale font UPM

shapes instance-attribute

shapes: Any

(fgMapShapes) font shapes map