fontTools.cffLib
index
/home/mcfletch/pylive/fontTools/cffLib.py

cffLib.py -- read/write tools for Adobe CFF fonts.

 
Modules
       
fontTools.misc.psCharStrings
sstruct
string
struct

 
Classes
       
BaseDict
FontDict
PrivateDict
TopDict
CFFFontSet
CFFWriter
CharStrings
CharsetCompiler
CharsetConverter
DictCompiler
FontDictCompiler
PrivateDictCompiler
TopDictCompiler
EncodingCompiler
FDSelect
FDSelectCompiler
FDSelectConverter
Index
GlobalSubrsIndex
SubrsIndex
TopDictIndex
FDArrayIndex
IndexCompiler
FDArrayIndexCompiler
GlobalSubrsCompiler
CharStringsCompiler
SubrsCompiler
IndexedStringsCompiler
TopDictIndexCompiler
IndexedStrings
SimpleConverter
ArrayConverter
EncodingConverter
Latin1Converter
NumberConverter
ROSConverter
TableConverter
CharStringsConverter
FDArrayConverter
PrivateDictConverter
SubrsConverter
DictDecompiler(ByteCodeBase)
PrivateDictDecompiler
TopDictDecompiler

 
class ArrayConverter(SimpleConverter)
     Methods defined here:
xmlRead(self, (name, attrs, content), parent)
xmlWrite(self, xmlWriter, name, value, progress)

Methods inherited from SimpleConverter:
read(self, parent, value)
write(self, parent, value)

 
class BaseDict
     Methods defined here:
__getattr__(self, name)
__init__(self, strings=None, file=None, offset=None)
decompile(self, data)
fromXML(self, (name, attrs, content))
getCompiler(self, strings, parent)
postDecompile(self)
toXML(self, xmlWriter, progress)

 
class CFFFontSet
     Methods defined here:
__getitem__(self, name)
__init__(self)
__len__(self)
compile(self, file, otFont)
decompile(self, file, otFont)
fromXML(self, (name, attrs, content))
keys(self)
toXML(self, xmlWriter, progress=None)
values(self)

 
class CFFWriter
     Methods defined here:
__init__(self)
add(self, table)
toFile(self, file)

 
class CharStrings
     Methods defined here:
__getitem__(self, name)
__init__(self, file, charset, globalSubrs, private, fdSelect, fdArray)
__len__(self)
__setitem__(self, name, charString)
fromXML(self, (name, attrs, content))
getItemAndSelector(self, name)
has_key(self, name)
keys(self)
toXML(self, xmlWriter, progress)
values(self)

 
class CharStringsCompiler(GlobalSubrsCompiler)
    
Method resolution order:
CharStringsCompiler
GlobalSubrsCompiler
IndexCompiler

Methods defined here:
setPos(self, pos, endPos)

Methods inherited from GlobalSubrsCompiler:
getItems(self, items, strings)

Methods inherited from IndexCompiler:
__init__(self, items, strings, parent)
getDataLength(self)
getOffsets(self)
toFile(self, file)

 
class CharStringsConverter(TableConverter)
    
Method resolution order:
CharStringsConverter
TableConverter
SimpleConverter

Methods defined here:
read(self, parent, value)
write(self, parent, value)
xmlRead(self, (name, attrs, content), parent)

Methods inherited from TableConverter:
xmlWrite(self, xmlWriter, name, value, progress)

 
class CharsetCompiler
     Methods defined here:
__init__(self, strings, charset, parent)
getDataLength(self)
setPos(self, pos, endPos)
toFile(self, file)

 
class CharsetConverter
     Methods defined here:
read(self, parent, value)
write(self, parent, value)
xmlRead(self, (name, attrs, content), parent)
xmlWrite(self, xmlWriter, name, value, progress)

 
class DictCompiler
     Methods defined here:
__init__(self, dictObj, strings, parent)
arg_SID(self, s)
arg_array(self, value)
arg_delta(self, value)
arg_number(self, num)
compile(self, reason)
getDataLength(self)
setPos(self, pos, endPos)
toFile(self, file)

 
class EncodingCompiler
     Methods defined here:
__init__(self, strings, encoding, parent)
getDataLength(self)
setPos(self, pos, endPos)
toFile(self, file)

 
class EncodingConverter(SimpleConverter)
     Methods defined here:
read(self, parent, value)
write(self, parent, value)
xmlRead(self, (name, attrs, content), parent)
xmlWrite(self, xmlWriter, name, value, progress)

 
class FDArrayConverter(TableConverter)
    
Method resolution order:
FDArrayConverter
TableConverter
SimpleConverter

Methods defined here:
read(self, parent, value)
write(self, parent, value)
xmlRead(self, (name, attrs, content), parent)

Methods inherited from TableConverter:
xmlWrite(self, xmlWriter, name, value, progress)

 
class FDArrayIndex(TopDictIndex)
    
Method resolution order:
FDArrayIndex
TopDictIndex
Index

Methods defined here:
fromXML(self, (name, attrs, content))

Data and other attributes defined here:
compilerClass = <class fontTools.cffLib.FDArrayIndexCompiler at 0x4c7f650>

Methods inherited from TopDictIndex:
produceItem(self, index, data, file, offset, size)
toXML(self, xmlWriter, progress)

Methods inherited from Index:
__getitem__(self, index)
__init__(self, file=None)
__len__(self)
append(self, item)
getCompiler(self, strings, parent)

 
class FDArrayIndexCompiler(IndexCompiler)
     Methods defined here:
getChildren(self, strings)
getItems(self, items, strings)
setPos(self, pos, endPos)
toFile(self, file)

Methods inherited from IndexCompiler:
__init__(self, items, strings, parent)
getDataLength(self)
getOffsets(self)

 
class FDSelect
     Methods defined here:
__getitem__(self, index)
__init__(self, file=None, numGlyphs=None, format=None)
__len__(self)
__setitem__(self, index, fdSelectValue)
append(self, fdSelectValue)

 
class FDSelectCompiler
     Methods defined here:
__init__(self, fdSelect, parent)
getDataLength(self)
setPos(self, pos, endPos)
toFile(self, file)

 
class FDSelectConverter
     Methods defined here:
read(self, parent, value)
write(self, parent, value)
xmlRead(self, (name, attrs, content), parent)
xmlWrite(self, xmlWriter, name, value, progress)
# The FDSelect glyph data is written out to XML in the charstring keys,
# so we write out only the format selector

 
class FontDict(BaseDict)
     Methods defined here:
__init__(self, strings=None, file=None, offset=None, GlobalSubrs=None)
getGlyphOrder(self)
toXML(self, xmlWriter, progress)

Data and other attributes defined here:
compilerClass = <class fontTools.cffLib.FontDictCompiler at 0x4c8b230>
converters = {'BaseFontBlend': <fontTools.cffLib.ArrayConverter instance at 0x4c8ca28>, 'BaseFontName': <fontTools.cffLib.SimpleConverter instance at 0x4c8c9e0>, 'CIDCount': <fontTools.cffLib.NumberConverter instance at 0x4c8cb48>, 'CIDFontRevision': <fontTools.cffLib.NumberConverter instance at 0x4c8cab8>, 'CIDFontType': <fontTools.cffLib.NumberConverter instance at 0x4c8cb00>, 'CIDFontVersion': <fontTools.cffLib.NumberConverter instance at 0x4c8ca70>, 'CharStrings': <fontTools.cffLib.CharStringsConverter instance at 0x4c82ea8>, 'CharstringType': <fontTools.cffLib.NumberConverter instance at 0x4c8c7e8>, 'Copyright': <fontTools.cffLib.Latin1Converter instance at 0x4c82cf8>, 'Encoding': <fontTools.cffLib.EncodingConverter instance at 0x4c82d88>, ...}
decompilerClass = None
defaults = {'CIDCount': 8720, 'CIDFontRevision': 0, 'CIDFontType': 0, 'CIDFontVersion': 0, 'CharstringType': 2, 'Encoding': 0, 'FontBBox': [0, 0, 0, 0], 'FontMatrix': [0.001, 0, 0, 0.001, 0, 0], 'ItalicAngle': 0, 'PaintType': 0, ...}
order = ['ROS', 'SyntheticBase', 'version', 'Notice', 'Copyright', 'FullName', 'FontName', 'FamilyName', 'Weight', 'isFixedPitch', 'ItalicAngle', 'UnderlinePosition', 'UnderlineThickness', 'PaintType', 'CharstringType', 'FontMatrix', 'UniqueID', 'FontBBox', 'StrokeWidth', 'XUID', ...]

Methods inherited from BaseDict:
__getattr__(self, name)
decompile(self, data)
fromXML(self, (name, attrs, content))
getCompiler(self, strings, parent)
postDecompile(self)

 
class FontDictCompiler(DictCompiler)
     Methods defined here:
getChildren(self, strings)

Data and other attributes defined here:
opcodes = {'BaseFontBlend': ('\x0c\x17', 'delta'), 'BaseFontName': ('\x0c\x16', 'SID'), 'CIDCount': ('\x0c"', 'number'), 'CIDFontRevision': ('\x0c ', 'number'), 'CIDFontType': ('\x0c!', 'number'), 'CIDFontVersion': ('\x0c\x1f', 'number'), 'CharStrings': ('\x11', 'number'), 'CharstringType': ('\x0c\x06', 'number'), 'Copyright': ('\x0c\x00', 'SID'), 'Encoding': ('\x10', 'number'), ...}

Methods inherited from DictCompiler:
__init__(self, dictObj, strings, parent)
arg_SID(self, s)
arg_array(self, value)
arg_delta(self, value)
arg_number(self, num)
compile(self, reason)
getDataLength(self)
setPos(self, pos, endPos)
toFile(self, file)

 
class GlobalSubrsCompiler(IndexCompiler)
     Methods defined here:
getItems(self, items, strings)

Methods inherited from IndexCompiler:
__init__(self, items, strings, parent)
getDataLength(self)
getOffsets(self)
toFile(self, file)

 
class GlobalSubrsIndex(Index)
     Methods defined here:
__init__(self, file=None, globalSubrs=None, private=None, fdSelect=None, fdArray=None)
fromXML(self, (name, attrs, content))
getItemAndSelector(self, index)
produceItem(self, index, data, file, offset, size)
toXML(self, xmlWriter, progress)

Data and other attributes defined here:
compilerClass = <class fontTools.cffLib.GlobalSubrsCompiler at 0x4c7f6b0>

Methods inherited from Index:
__getitem__(self, index)
__len__(self)
append(self, item)
getCompiler(self, strings, parent)

 
class Index
    This class represents what the CFF spec calls an INDEX.
 
  Methods defined here:
__getitem__(self, index)
__init__(self, file=None)
__len__(self)
append(self, item)
getCompiler(self, strings, parent)
produceItem(self, index, data, file, offset, size)

Data and other attributes defined here:
compilerClass = <class fontTools.cffLib.IndexCompiler at 0x4c7f530>

 
class IndexCompiler
     Methods defined here:
__init__(self, items, strings, parent)
getDataLength(self)
getItems(self, items, strings)
getOffsets(self)
toFile(self, file)

 
class IndexedStrings
    SID -> string mapping.
 
  Methods defined here:
__getitem__(self, SID)
__init__(self, file=None)
__len__(self)
buildStringMapping(self)
getCompiler(self)
getSID(self, s)
getStrings(self)

 
class IndexedStringsCompiler(IndexCompiler)
     Methods defined here:
getItems(self, items, strings)

Methods inherited from IndexCompiler:
__init__(self, items, strings, parent)
getDataLength(self)
getOffsets(self)
toFile(self, file)

 
class Latin1Converter(SimpleConverter)
     Methods defined here:
xmlRead(self, (name, attrs, content), parent)

Methods inherited from SimpleConverter:
read(self, parent, value)
write(self, parent, value)
xmlWrite(self, xmlWriter, name, value, progress)

 
class NumberConverter(SimpleConverter)
     Methods defined here:
xmlRead(self, (name, attrs, content), parent)

Methods inherited from SimpleConverter:
read(self, parent, value)
write(self, parent, value)
xmlWrite(self, xmlWriter, name, value, progress)

 
class PrivateDict(BaseDict)
     Data and other attributes defined here:
compilerClass = <class fontTools.cffLib.PrivateDictCompiler at 0x4c8b290>
converters = {'BlueFuzz': <fontTools.cffLib.NumberConverter instance at 0x4c8c128>, 'BlueScale': <fontTools.cffLib.NumberConverter instance at 0x4c8c098>, 'BlueShift': <fontTools.cffLib.NumberConverter instance at 0x4c8c0e0>, 'BlueValues': <fontTools.cffLib.ArrayConverter instance at 0x4c82f38>, 'ExpansionFactor': <fontTools.cffLib.NumberConverter instance at 0x4c8c3b0>, 'FamilyBlues': <fontTools.cffLib.ArrayConverter instance at 0x4c82fc8>, 'FamilyOtherBlues': <fontTools.cffLib.ArrayConverter instance at 0x4c8c050>, 'ForceBold': <fontTools.cffLib.NumberConverter instance at 0x4c8c290>, 'ForceBoldThreshold': <fontTools.cffLib.NumberConverter instance at 0x4c8c2d8>, 'LanguageGroup': <fontTools.cffLib.NumberConverter instance at 0x4c8c368>, ...}
decompilerClass = <class fontTools.cffLib.PrivateDictDecompiler at 0x4c8b110>
defaults = {'BlueFuzz': 1, 'BlueScale': 0.039625, 'BlueShift': 7, 'ExpansionFactor': 0.059999999999999998, 'ForceBold': 0, 'LanguageGroup': 0, 'defaultWidthX': 0, 'initialRandomSeed': 0, 'nominalWidthX': 0}
order = ['BlueValues', 'OtherBlues', 'FamilyBlues', 'FamilyOtherBlues', 'BlueScale', 'BlueShift', 'BlueFuzz', 'StdHW', 'StdVW', 'StemSnapH', 'StemSnapV', 'ForceBold', 'ForceBoldThreshold', 'lenIV', 'LanguageGroup', 'ExpansionFactor', 'initialRandomSeed', 'defaultWidthX', 'nominalWidthX', 'Subrs']

Methods inherited from BaseDict:
__getattr__(self, name)
__init__(self, strings=None, file=None, offset=None)
decompile(self, data)
fromXML(self, (name, attrs, content))
getCompiler(self, strings, parent)
postDecompile(self)
toXML(self, xmlWriter, progress)

 
class PrivateDictCompiler(DictCompiler)
     Methods defined here:
getChildren(self, strings)
setPos(self, pos, endPos)

Data and other attributes defined here:
opcodes = {'BlueFuzz': ('\x0c\x0b', 'number'), 'BlueScale': ('\x0c\t', 'number'), 'BlueShift': ('\x0c\n', 'number'), 'BlueValues': ('\x06', 'delta'), 'ExpansionFactor': ('\x0c\x12', 'number'), 'FamilyBlues': ('\x08', 'delta'), 'FamilyOtherBlues': ('\t', 'delta'), 'ForceBold': ('\x0c\x0e', 'number'), 'ForceBoldThreshold': ('\x0c\x0f', 'number'), 'LanguageGroup': ('\x0c\x11', 'number'), ...}

Methods inherited from DictCompiler:
__init__(self, dictObj, strings, parent)
arg_SID(self, s)
arg_array(self, value)
arg_delta(self, value)
arg_number(self, num)
compile(self, reason)
getDataLength(self)
toFile(self, file)

 
class PrivateDictConverter(TableConverter)
    
Method resolution order:
PrivateDictConverter
TableConverter
SimpleConverter

Methods defined here:
getClass(self)
read(self, parent, value)
write(self, parent, value)

Methods inherited from TableConverter:
xmlRead(self, (name, attrs, content), parent)
xmlWrite(self, xmlWriter, name, value, progress)

 
class PrivateDictDecompiler(DictDecompiler)
    
Method resolution order:
PrivateDictDecompiler
DictDecompiler
ByteCodeBase

Data and other attributes defined here:
operators = {6: ('BlueValues', 'delta'), 7: ('OtherBlues', 'delta'), 8: ('FamilyBlues', 'delta'), 9: ('FamilyOtherBlues', 'delta'), 10: ('StdHW', 'number'), 11: ('StdVW', 'number'), 19: ('Subrs', 'number'), 20: ('defaultWidthX', 'number'), 21: ('nominalWidthX', 'number'), (12, 9): ('BlueScale', 'number'), ...}

Methods inherited from DictDecompiler:
__init__(self, strings)
arg_SID(self, name)
arg_array(self, name)
arg_delta(self, name)
arg_number(self, name)
decompile(self, data)
do_operator(self, b0, data, index)
getDict(self)
handle_operator(self, operator, argType)
pop(self)
popall(self)

Data and other attributes inherited from DictDecompiler:
operandEncoding = ['do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', ...]

Methods inherited from ByteCodeBase:
read_byte(self, b0, data, index)
read_fixed1616(self, b0, data, index)
read_longInt(self, b0, data, index)
read_realNumber(self, b0, data, index)
read_shortInt(self, b0, data, index)
read_smallInt1(self, b0, data, index)
read_smallInt2(self, b0, data, index)

 
class ROSConverter(SimpleConverter)
     Methods defined here:
xmlRead(self, (name, attrs, content), parent)
xmlWrite(self, xmlWriter, name, value, progress)

Methods inherited from SimpleConverter:
read(self, parent, value)
write(self, parent, value)

 
class SimpleConverter
     Methods defined here:
read(self, parent, value)
write(self, parent, value)
xmlRead(self, (name, attrs, content), parent)
xmlWrite(self, xmlWriter, name, value, progress)

 
class SubrsCompiler(GlobalSubrsCompiler)
    
Method resolution order:
SubrsCompiler
GlobalSubrsCompiler
IndexCompiler

Methods defined here:
setPos(self, pos, endPos)

Methods inherited from GlobalSubrsCompiler:
getItems(self, items, strings)

Methods inherited from IndexCompiler:
__init__(self, items, strings, parent)
getDataLength(self)
getOffsets(self)
toFile(self, file)

 
class SubrsConverter(TableConverter)
    
Method resolution order:
SubrsConverter
TableConverter
SimpleConverter

Methods defined here:
getClass(self)
read(self, parent, value)
write(self, parent, value)

Methods inherited from TableConverter:
xmlRead(self, (name, attrs, content), parent)
xmlWrite(self, xmlWriter, name, value, progress)

 
class SubrsIndex(GlobalSubrsIndex)
    
Method resolution order:
SubrsIndex
GlobalSubrsIndex
Index

Data and other attributes defined here:
compilerClass = <class fontTools.cffLib.SubrsCompiler at 0x4c7f710>

Methods inherited from GlobalSubrsIndex:
__init__(self, file=None, globalSubrs=None, private=None, fdSelect=None, fdArray=None)
fromXML(self, (name, attrs, content))
getItemAndSelector(self, index)
produceItem(self, index, data, file, offset, size)
toXML(self, xmlWriter, progress)

Methods inherited from Index:
__getitem__(self, index)
__len__(self)
append(self, item)
getCompiler(self, strings, parent)

 
class TableConverter(SimpleConverter)
     Methods defined here:
xmlRead(self, (name, attrs, content), parent)
xmlWrite(self, xmlWriter, name, value, progress)

Methods inherited from SimpleConverter:
read(self, parent, value)
write(self, parent, value)

 
class TopDict(BaseDict)
     Methods defined here:
__init__(self, strings=None, file=None, offset=None, GlobalSubrs=None)
decompileAllCharStrings(self, progress)
getGlyphOrder(self)
postDecompile(self)
toXML(self, xmlWriter, progress)

Data and other attributes defined here:
compilerClass = <class fontTools.cffLib.TopDictCompiler at 0x4c8b1d0>
converters = {'BaseFontBlend': <fontTools.cffLib.ArrayConverter instance at 0x4c8ca28>, 'BaseFontName': <fontTools.cffLib.SimpleConverter instance at 0x4c8c9e0>, 'CIDCount': <fontTools.cffLib.NumberConverter instance at 0x4c8cb48>, 'CIDFontRevision': <fontTools.cffLib.NumberConverter instance at 0x4c8cab8>, 'CIDFontType': <fontTools.cffLib.NumberConverter instance at 0x4c8cb00>, 'CIDFontVersion': <fontTools.cffLib.NumberConverter instance at 0x4c8ca70>, 'CharStrings': <fontTools.cffLib.CharStringsConverter instance at 0x4c82ea8>, 'CharstringType': <fontTools.cffLib.NumberConverter instance at 0x4c8c7e8>, 'Copyright': <fontTools.cffLib.Latin1Converter instance at 0x4c82cf8>, 'Encoding': <fontTools.cffLib.EncodingConverter instance at 0x4c82d88>, ...}
decompilerClass = <class fontTools.cffLib.TopDictDecompiler at 0x4c8b0b0>
defaults = {'CIDCount': 8720, 'CIDFontRevision': 0, 'CIDFontType': 0, 'CIDFontVersion': 0, 'CharstringType': 2, 'Encoding': 0, 'FontBBox': [0, 0, 0, 0], 'FontMatrix': [0.001, 0, 0, 0.001, 0, 0], 'ItalicAngle': 0, 'PaintType': 0, ...}
order = ['ROS', 'SyntheticBase', 'version', 'Notice', 'Copyright', 'FullName', 'FontName', 'FamilyName', 'Weight', 'isFixedPitch', 'ItalicAngle', 'UnderlinePosition', 'UnderlineThickness', 'PaintType', 'CharstringType', 'FontMatrix', 'UniqueID', 'FontBBox', 'StrokeWidth', 'XUID', ...]

Methods inherited from BaseDict:
__getattr__(self, name)
decompile(self, data)
fromXML(self, (name, attrs, content))
getCompiler(self, strings, parent)

 
class TopDictCompiler(DictCompiler)
     Methods defined here:
getChildren(self, strings)

Data and other attributes defined here:
opcodes = {'BaseFontBlend': ('\x0c\x17', 'delta'), 'BaseFontName': ('\x0c\x16', 'SID'), 'CIDCount': ('\x0c"', 'number'), 'CIDFontRevision': ('\x0c ', 'number'), 'CIDFontType': ('\x0c!', 'number'), 'CIDFontVersion': ('\x0c\x1f', 'number'), 'CharStrings': ('\x11', 'number'), 'CharstringType': ('\x0c\x06', 'number'), 'Copyright': ('\x0c\x00', 'SID'), 'Encoding': ('\x10', 'number'), ...}

Methods inherited from DictCompiler:
__init__(self, dictObj, strings, parent)
arg_SID(self, s)
arg_array(self, value)
arg_delta(self, value)
arg_number(self, num)
compile(self, reason)
getDataLength(self)
setPos(self, pos, endPos)
toFile(self, file)

 
class TopDictDecompiler(DictDecompiler)
    
Method resolution order:
TopDictDecompiler
DictDecompiler
ByteCodeBase

Data and other attributes defined here:
operators = {0: ('version', 'SID'), 1: ('Notice', 'SID'), 2: ('FullName', 'SID'), 3: ('FamilyName', 'SID'), 4: ('Weight', 'SID'), 5: ('FontBBox', 'array'), 13: ('UniqueID', 'number'), 14: ('XUID', 'array'), 15: ('charset', 'number'), 16: ('Encoding', 'number'), ...}

Methods inherited from DictDecompiler:
__init__(self, strings)
arg_SID(self, name)
arg_array(self, name)
arg_delta(self, name)
arg_number(self, name)
decompile(self, data)
do_operator(self, b0, data, index)
getDict(self)
handle_operator(self, operator, argType)
pop(self)
popall(self)

Data and other attributes inherited from DictDecompiler:
operandEncoding = ['do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', 'do_operator', ...]

Methods inherited from ByteCodeBase:
read_byte(self, b0, data, index)
read_fixed1616(self, b0, data, index)
read_longInt(self, b0, data, index)
read_realNumber(self, b0, data, index)
read_shortInt(self, b0, data, index)
read_smallInt1(self, b0, data, index)
read_smallInt2(self, b0, data, index)

 
class TopDictIndex(Index)
     Methods defined here:
produceItem(self, index, data, file, offset, size)
toXML(self, xmlWriter, progress)

Data and other attributes defined here:
compilerClass = <class fontTools.cffLib.TopDictIndexCompiler at 0x4c7f5f0>

Methods inherited from Index:
__getitem__(self, index)
__init__(self, file=None)
__len__(self)
append(self, item)
getCompiler(self, strings, parent)

 
class TopDictIndexCompiler(IndexCompiler)
     Methods defined here:
getChildren(self, strings)
getItems(self, items, strings)

Methods inherited from IndexCompiler:
__init__(self, items, strings, parent)
getDataLength(self)
getOffsets(self)
toFile(self, file)

 
Functions
       
addConverters(table)
buildConverters(table)
buildDefaults(table)
buildOpcodeDict(table)
buildOperatorDict(table)
buildOrder(table)
calcOffSize(largestOffset)
encodeNumber(num)
getCIDfromName(name, strings)
getSIDfromName(name, strings)
packCard16(value)
packCard8(value)
packCharset(charset, isCID, strings)
packCharset0(charset, isCID, strings)
packEncoding0(charset, encoding, strings)
packEncoding1(charset, encoding, strings)
packFDSelect0(fdSelectArray)
packFDSelect3(fdSelectArray)
parseCharset(numGlyphs, file, strings, isCID, format)
parseCharset0(numGlyphs, file, strings, isCID)
parseEncoding0(charset, file, haveSupplement, strings)
parseEncoding1(charset, file, haveSupplement, strings)
parseNum(s)
readCard16(file)
readCard8(file)
writeCard16(file, value)
writeCard8(file, value)

 
Data
        DEBUG = 0
__file__ = '/home/mcfletch/pylive/fontTools/cffLib.pyc'
__name__ = 'fontTools.cffLib'
__package__ = 'fontTools'
_i = 390
cffExpertStringCount = 166
cffExpertSubsetStringCount = 87
cffExpertSubsetStrings = ['.notdef', 'space', 'dollaroldstyle', 'dollarsuperior', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', ...]
cffHeaderFormat = '\n\tmajor: B\n\tminor: B\n\thdrSize: B\n\toffSize: B\n'
cffIExpertStrings = ['.notdef', 'space', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle', ...]
cffISOAdobeStringCount = 229
cffISOAdobeStrings = ['.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', ...]
cffStandardStringCount = 391
cffStandardStringMapping = {'.notdef': 0, '001.000': 379, '001.001': 380, '001.002': 381, '001.003': 382, 'A': 34, 'AE': 138, 'AEsmall': 353, 'Aacute': 171, 'Aacutesmall': 348, ...}
cffStandardStrings = ['.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', ...]
privateDictOperators = [(6, 'BlueValues', 'delta', None, <fontTools.cffLib.ArrayConverter instance at 0x4c82f38>), (7, 'OtherBlues', 'delta', None, <fontTools.cffLib.ArrayConverter instance at 0x4c82f80>), (8, 'FamilyBlues', 'delta', None, <fontTools.cffLib.ArrayConverter instance at 0x4c82fc8>), (9, 'FamilyOtherBlues', 'delta', None, <fontTools.cffLib.ArrayConverter instance at 0x4c8c050>), ((12, 9), 'BlueScale', 'number', 0.039625, <fontTools.cffLib.NumberConverter instance at 0x4c8c098>), ((12, 10), 'BlueShift', 'number', 7, <fontTools.cffLib.NumberConverter instance at 0x4c8c0e0>), ((12, 11), 'BlueFuzz', 'number', 1, <fontTools.cffLib.NumberConverter instance at 0x4c8c128>), (10, 'StdHW', 'number', None, <fontTools.cffLib.NumberConverter instance at 0x4c8c170>), (11, 'StdVW', 'number', None, <fontTools.cffLib.NumberConverter instance at 0x4c8c1b8>), ((12, 12), 'StemSnapH', 'delta', None, <fontTools.cffLib.ArrayConverter instance at 0x4c8c200>), ((12, 13), 'StemSnapV', 'delta', None, <fontTools.cffLib.ArrayConverter instance at 0x4c8c248>), ((12, 14), 'ForceBold', 'number', 0, <fontTools.cffLib.NumberConverter instance at 0x4c8c290>), ((12, 15), 'ForceBoldThreshold', 'number', None, <fontTools.cffLib.NumberConverter instance at 0x4c8c2d8>), ((12, 16), 'lenIV', 'number', None, <fontTools.cffLib.NumberConverter instance at 0x4c8c320>), ((12, 17), 'LanguageGroup', 'number', 0, <fontTools.cffLib.NumberConverter instance at 0x4c8c368>), ((12, 18), 'ExpansionFactor', 'number', 0.059999999999999998, <fontTools.cffLib.NumberConverter instance at 0x4c8c3b0>), ((12, 19), 'initialRandomSeed', 'number', 0, <fontTools.cffLib.NumberConverter instance at 0x4c8c3f8>), (20, 'defaultWidthX', 'number', 0, <fontTools.cffLib.NumberConverter instance at 0x4c8c440>), (21, 'nominalWidthX', 'number', 0, <fontTools.cffLib.NumberConverter instance at 0x4c8c488>), (19, 'Subrs', 'number', None, <fontTools.cffLib.SubrsConverter instance at 0x4c82ef0>)]
topDictOperators = [((12, 30), 'ROS', ('SID', 'SID', 'number'), None, <fontTools.cffLib.ROSConverter instance at 0x4c82c68>), ((12, 20), 'SyntheticBase', 'number', None, <fontTools.cffLib.NumberConverter instance at 0x4c8c4d0>), (0, 'version', 'SID', None, <fontTools.cffLib.SimpleConverter instance at 0x4c8c518>), (1, 'Notice', 'SID', None, <fontTools.cffLib.Latin1Converter instance at 0x4c82cb0>), ((12, 0), 'Copyright', 'SID', None, <fontTools.cffLib.Latin1Converter instance at 0x4c82cf8>), (2, 'FullName', 'SID', None, <fontTools.cffLib.SimpleConverter instance at 0x4c8c560>), ((12, 38), 'FontName', 'SID', None, <fontTools.cffLib.SimpleConverter instance at 0x4c8c5a8>), (3, 'FamilyName', 'SID', None, <fontTools.cffLib.SimpleConverter instance at 0x4c8c5f0>), (4, 'Weight', 'SID', None, <fontTools.cffLib.SimpleConverter instance at 0x4c8c638>), ((12, 1), 'isFixedPitch', 'number', 0, <fontTools.cffLib.NumberConverter instance at 0x4c8c680>), ((12, 2), 'ItalicAngle', 'number', 0, <fontTools.cffLib.NumberConverter instance at 0x4c8c6c8>), ((12, 3), 'UnderlinePosition', 'number', None, <fontTools.cffLib.NumberConverter instance at 0x4c8c710>), ((12, 4), 'UnderlineThickness', 'number', 50, <fontTools.cffLib.NumberConverter instance at 0x4c8c758>), ((12, 5), 'PaintType', 'number', 0, <fontTools.cffLib.NumberConverter instance at 0x4c8c7a0>), ((12, 6), 'CharstringType', 'number', 2, <fontTools.cffLib.NumberConverter instance at 0x4c8c7e8>), ((12, 7), 'FontMatrix', 'array', [0.001, 0, 0, 0.001, 0, 0], <fontTools.cffLib.ArrayConverter instance at 0x4c8c830>), (13, 'UniqueID', 'number', None, <fontTools.cffLib.NumberConverter instance at 0x4c8c878>), (5, 'FontBBox', 'array', [0, 0, 0, 0], <fontTools.cffLib.ArrayConverter instance at 0x4c8c8c0>), ((12, 8), 'StrokeWidth', 'number', 0, <fontTools.cffLib.NumberConverter instance at 0x4c8c908>), (14, 'XUID', 'array', None, <fontTools.cffLib.ArrayConverter instance at 0x4c8c950>), ...]