fontTools.nfntLib
index
/code/fontTools/Lib/fontTools/nfntLib.py

 
Modules
       
sstruct
string
struct
types

 
Classes
       
Glyph
NFNT

 
class Glyph
     Methods defined here:
__init__(self, width, offset, pixels=None, pixelDepth=1)

 
class NFNT
     Methods defined here:
__getitem__(self, charNum)
__init__(self, data=None)
__len__(self)
__setitem__(self, charNum, glyph)
charwidth(self, ch)
compile(self)
createQdBitImage(self)
decompile(self, data)
drawchar(self, ch, destbits, xOffset, yOffset=0)
drawstring(self, astring, destbits, xOffset=0, yOffset=0)
getMissing(self)
getcharbounds(self, ch)
getcharboundsindex(self, cindex)
packGlyphs(self)
stringwidth(self, astring)
unpackGlyphs(self)

 
Functions
       
dataFromFile(pathOrFSSpec, nameOrID='', resType='NFNT')
fromFile(pathOrFSSpec, nameOrID='', resType='NFNT')

 
Data
        headerSize = 26
nfntHeaderFormat = '\n\t> # big endian\n\tfontType: h # font typ...\trowWords: h # row width of bit image / 2\n'