cffLib

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

class fontTools.cffLib.CFFFontSet
decompile(file, otFont)
keys()
values()
compile(file, otFont)
toXML(xmlWriter, progress=None)
fromXML((name, attrs, content))
class fontTools.cffLib.CFFWriter
add(table)
toFile(file)
fontTools.cffLib.calcOffSize(largestOffset)
class fontTools.cffLib.IndexCompiler(items, strings, parent)
getItems(items, strings)
getOffsets()
getDataLength()
toFile(file)
class fontTools.cffLib.IndexedStringsCompiler(items, strings, parent)

Bases: fontTools.cffLib.IndexCompiler

getItems(items, strings)
class fontTools.cffLib.TopDictIndexCompiler(items, strings, parent)

Bases: fontTools.cffLib.IndexCompiler

getItems(items, strings)
getChildren(strings)
class fontTools.cffLib.FDArrayIndexCompiler(items, strings, parent)

Bases: fontTools.cffLib.IndexCompiler

getItems(items, strings)
getChildren(strings)
toFile(file)
setPos(pos, endPos)
class fontTools.cffLib.GlobalSubrsCompiler(items, strings, parent)

Bases: fontTools.cffLib.IndexCompiler

getItems(items, strings)
class fontTools.cffLib.SubrsCompiler(items, strings, parent)

Bases: fontTools.cffLib.GlobalSubrsCompiler

setPos(pos, endPos)
class fontTools.cffLib.CharStringsCompiler(items, strings, parent)

Bases: fontTools.cffLib.GlobalSubrsCompiler

setPos(pos, endPos)
class fontTools.cffLib.Index(file=None)

This class represents what the CFF spec calls an INDEX.

compilerClass

alias of IndexCompiler

produceItem(index, data, file, offset, size)
append(item)
getCompiler(strings, parent)
class fontTools.cffLib.GlobalSubrsIndex(file=None, globalSubrs=None, private=None, fdSelect=None, fdArray=None)

Bases: fontTools.cffLib.Index

compilerClass

alias of GlobalSubrsCompiler

produceItem(index, data, file, offset, size)
toXML(xmlWriter, progress)
fromXML((name, attrs, content))
getItemAndSelector(index)
class fontTools.cffLib.SubrsIndex(file=None, globalSubrs=None, private=None, fdSelect=None, fdArray=None)

Bases: fontTools.cffLib.GlobalSubrsIndex

compilerClass

alias of SubrsCompiler

class fontTools.cffLib.TopDictIndex(file=None)

Bases: fontTools.cffLib.Index

compilerClass

alias of TopDictIndexCompiler

produceItem(index, data, file, offset, size)
toXML(xmlWriter, progress)
class fontTools.cffLib.FDArrayIndex(file=None)

Bases: fontTools.cffLib.TopDictIndex

compilerClass

alias of FDArrayIndexCompiler

fromXML((name, attrs, content))
class fontTools.cffLib.FDSelect(file=None, numGlyphs=None, format=None)
append(fdSelectValue)
class fontTools.cffLib.CharStrings(file, charset, globalSubrs, private, fdSelect, fdArray)
keys()
values()
has_key(name)
getItemAndSelector(name)
toXML(xmlWriter, progress)
fromXML((name, attrs, content))
fontTools.cffLib.readCard8(file)
fontTools.cffLib.readCard16(file)
fontTools.cffLib.writeCard8(file, value)
fontTools.cffLib.writeCard16(file, value)
fontTools.cffLib.packCard8(value)
fontTools.cffLib.packCard16(value)
fontTools.cffLib.buildOperatorDict(table)
fontTools.cffLib.buildOpcodeDict(table)
fontTools.cffLib.buildOrder(table)
fontTools.cffLib.buildDefaults(table)
fontTools.cffLib.buildConverters(table)
class fontTools.cffLib.SimpleConverter
read(parent, value)
write(parent, value)
xmlWrite(xmlWriter, name, value, progress)
xmlRead((name, attrs, content), parent)
class fontTools.cffLib.Latin1Converter

Bases: fontTools.cffLib.SimpleConverter

xmlRead((name, attrs, content), parent)
fontTools.cffLib.parseNum(s)
class fontTools.cffLib.NumberConverter

Bases: fontTools.cffLib.SimpleConverter

xmlRead((name, attrs, content), parent)
class fontTools.cffLib.ArrayConverter

Bases: fontTools.cffLib.SimpleConverter

xmlWrite(xmlWriter, name, value, progress)
xmlRead((name, attrs, content), parent)
class fontTools.cffLib.TableConverter

Bases: fontTools.cffLib.SimpleConverter

xmlWrite(xmlWriter, name, value, progress)
xmlRead((name, attrs, content), parent)
class fontTools.cffLib.PrivateDictConverter

Bases: fontTools.cffLib.TableConverter

getClass()
read(parent, value)
write(parent, value)
class fontTools.cffLib.SubrsConverter

Bases: fontTools.cffLib.TableConverter

getClass()
read(parent, value)
write(parent, value)
class fontTools.cffLib.CharStringsConverter

Bases: fontTools.cffLib.TableConverter

read(parent, value)
write(parent, value)
xmlRead((name, attrs, content), parent)
class fontTools.cffLib.CharsetConverter
read(parent, value)
write(parent, value)
xmlWrite(xmlWriter, name, value, progress)
xmlRead((name, attrs, content), parent)
class fontTools.cffLib.CharsetCompiler(strings, charset, parent)
setPos(pos, endPos)
getDataLength()
toFile(file)
fontTools.cffLib.getCIDfromName(name, strings)
fontTools.cffLib.getSIDfromName(name, strings)
fontTools.cffLib.packCharset0(charset, isCID, strings)
fontTools.cffLib.packCharset(charset, isCID, strings)
fontTools.cffLib.parseCharset0(numGlyphs, file, strings, isCID)
fontTools.cffLib.parseCharset(numGlyphs, file, strings, isCID, format)
class fontTools.cffLib.EncodingCompiler(strings, encoding, parent)
setPos(pos, endPos)
getDataLength()
toFile(file)
class fontTools.cffLib.EncodingConverter

Bases: fontTools.cffLib.SimpleConverter

read(parent, value)
write(parent, value)
xmlWrite(xmlWriter, name, value, progress)
xmlRead((name, attrs, content), parent)
fontTools.cffLib.parseEncoding0(charset, file, haveSupplement, strings)
fontTools.cffLib.parseEncoding1(charset, file, haveSupplement, strings)
fontTools.cffLib.packEncoding0(charset, encoding, strings)
fontTools.cffLib.packEncoding1(charset, encoding, strings)
class fontTools.cffLib.FDArrayConverter

Bases: fontTools.cffLib.TableConverter

read(parent, value)
write(parent, value)
xmlRead((name, attrs, content), parent)
class fontTools.cffLib.FDSelectConverter
read(parent, value)
write(parent, value)
xmlWrite(xmlWriter, name, value, progress)
xmlRead((name, attrs, content), parent)
fontTools.cffLib.packFDSelect0(fdSelectArray)
fontTools.cffLib.packFDSelect3(fdSelectArray)
class fontTools.cffLib.FDSelectCompiler(fdSelect, parent)
setPos(pos, endPos)
getDataLength()
toFile(file)
class fontTools.cffLib.ROSConverter

Bases: fontTools.cffLib.SimpleConverter

xmlWrite(xmlWriter, name, value, progress)
xmlRead((name, attrs, content), parent)
fontTools.cffLib.addConverters(table)
class fontTools.cffLib.TopDictDecompiler(strings)

Bases: fontTools.misc.psCharStrings.DictDecompiler

operators = {0: ('version', 'SID'), 1: ('Notice', 'SID'), 2: ('FullName', 'SID'), 3: ('FamilyName', 'SID'), 4: ('Weight', 'SID'), 5: ('FontBBox', 'array'), (12, 32): ('CIDFontRevision', 'number'), 13: ('UniqueID', 'number'), 14: ('XUID', 'array'), 15: ('charset', 'number'), (12, 5): ('PaintType', 'number'), 17: ('CharStrings', 'number'), (12, 31): ('CIDFontVersion', 'number'), (12, 36): ('FDArray', 'number'), (12, 1): ('isFixedPitch', 'number'), (12, 2): ('ItalicAngle', 'number'), (12, 20): ('SyntheticBase', 'number'), (12, 33): ('CIDFontType', 'number'), (12, 6): ('CharstringType', 'number'), (12, 37): ('FDSelect', 'number'), (12, 3): ('UnderlinePosition', 'number'), (12, 21): ('PostScript', 'SID'), (12, 34): ('CIDCount', 'number'), (12, 7): ('FontMatrix', 'array'), (12, 38): ('FontName', 'SID'), (12, 22): ('BaseFontName', 'SID'), (12, 35): ('UIDBase', 'number'), 16: ('Encoding', 'number'), (12, 0): ('Copyright', 'SID'), 18: ('Private', ('number', 'number')), (12, 4): ('UnderlineThickness', 'number'), (12, 30): ('ROS', ('SID', 'SID', 'number')), (12, 23): ('BaseFontBlend', 'delta'), (12, 8): ('StrokeWidth', 'number')}
class fontTools.cffLib.PrivateDictDecompiler(strings)

Bases: fontTools.misc.psCharStrings.DictDecompiler

operators = {(12, 15): ('ForceBoldThreshold', 'number'), (12, 12): ('StemSnapH', 'delta'), (12, 14): ('ForceBold', 'number'), 6: ('BlueValues', 'delta'), 7: ('OtherBlues', 'delta'), 8: ('FamilyBlues', 'delta'), 9: ('FamilyOtherBlues', 'delta'), 10: ('StdHW', 'number'), 11: ('StdVW', 'number'), (12, 19): ('initialRandomSeed', 'number'), (12, 18): ('ExpansionFactor', 'number'), (12, 13): ('StemSnapV', 'delta'), 19: ('Subrs', 'number'), (12, 17): ('LanguageGroup', 'number'), 21: ('nominalWidthX', 'number'), (12, 11): ('BlueFuzz', 'number'), (12, 16): ('lenIV', 'number'), (12, 10): ('BlueShift', 'number'), (12, 9): ('BlueScale', 'number'), 20: ('defaultWidthX', 'number')}
class fontTools.cffLib.DictCompiler(dictObj, strings, parent)
setPos(pos, endPos)
getDataLength()
compile(reason)
toFile(file)
arg_number(num)
arg_SID(s)
arg_array(value)
arg_delta(value)
fontTools.cffLib.encodeNumber(num)
class fontTools.cffLib.TopDictCompiler(dictObj, strings, parent)

Bases: fontTools.cffLib.DictCompiler

opcodes = {'FontMatrix': ('\x0c\x07', 'array'), 'isFixedPitch': ('\x0c\x01', 'number'), 'BaseFontName': ('\x0c\x16', 'SID'), 'PostScript': ('\x0c\x15', 'SID'), 'BaseFontBlend': ('\x0c\x17', 'delta'), 'CIDCount': ('\x0c"', 'number'), 'XUID': ('\x0e', 'array'), 'Notice': ('\x01', 'SID'), 'Copyright': ('\x0c\x00', 'SID'), 'charset': ('\x0f', 'number'), 'FDArray': ('\x0c$', 'number'), 'version': ('\x00', 'SID'), 'UnderlinePosition': ('\x0c\x03', 'number'), 'FDSelect': ('\x0c%', 'number'), 'UnderlineThickness': ('\x0c\x04', 'number'), 'ItalicAngle': ('\x0c\x02', 'number'), 'ROS': ('\x0c\x1e', ('SID', 'SID', 'number')), 'CIDFontVersion': ('\x0c\x1f', 'number'), 'CIDFontType': ('\x0c!', 'number'), 'UIDBase': ('\x0c#', 'number'), 'CharstringType': ('\x0c\x06', 'number'), 'CIDFontRevision': ('\x0c ', 'number'), 'FontName': ('\x0c&', 'SID'), 'SyntheticBase': ('\x0c\x14', 'number'), 'FullName': ('\x02', 'SID'), 'StrokeWidth': ('\x0c\x08', 'number'), 'CharStrings': ('\x11', 'number'), 'Weight': ('\x04', 'SID'), 'Encoding': ('\x10', 'number'), 'FamilyName': ('\x03', 'SID'), 'Private': ('\x12', ('number', 'number')), 'PaintType': ('\x0c\x05', 'number'), 'UniqueID': ('\r', 'number'), 'FontBBox': ('\x05', 'array')}
getChildren(strings)
class fontTools.cffLib.FontDictCompiler(dictObj, strings, parent)

Bases: fontTools.cffLib.DictCompiler

opcodes = {'FontMatrix': ('\x0c\x07', 'array'), 'isFixedPitch': ('\x0c\x01', 'number'), 'BaseFontName': ('\x0c\x16', 'SID'), 'PostScript': ('\x0c\x15', 'SID'), 'BaseFontBlend': ('\x0c\x17', 'delta'), 'CIDCount': ('\x0c"', 'number'), 'XUID': ('\x0e', 'array'), 'Notice': ('\x01', 'SID'), 'Copyright': ('\x0c\x00', 'SID'), 'charset': ('\x0f', 'number'), 'FDArray': ('\x0c$', 'number'), 'version': ('\x00', 'SID'), 'UnderlinePosition': ('\x0c\x03', 'number'), 'FDSelect': ('\x0c%', 'number'), 'UnderlineThickness': ('\x0c\x04', 'number'), 'ItalicAngle': ('\x0c\x02', 'number'), 'ROS': ('\x0c\x1e', ('SID', 'SID', 'number')), 'CIDFontVersion': ('\x0c\x1f', 'number'), 'CIDFontType': ('\x0c!', 'number'), 'UIDBase': ('\x0c#', 'number'), 'CharstringType': ('\x0c\x06', 'number'), 'CIDFontRevision': ('\x0c ', 'number'), 'FontName': ('\x0c&', 'SID'), 'SyntheticBase': ('\x0c\x14', 'number'), 'FullName': ('\x02', 'SID'), 'StrokeWidth': ('\x0c\x08', 'number'), 'CharStrings': ('\x11', 'number'), 'Weight': ('\x04', 'SID'), 'Encoding': ('\x10', 'number'), 'FamilyName': ('\x03', 'SID'), 'Private': ('\x12', ('number', 'number')), 'PaintType': ('\x0c\x05', 'number'), 'UniqueID': ('\r', 'number'), 'FontBBox': ('\x05', 'array')}
getChildren(strings)
class fontTools.cffLib.PrivateDictCompiler(dictObj, strings, parent)

Bases: fontTools.cffLib.DictCompiler

opcodes = {'StemSnapH': ('\x0c\x0c', 'delta'), 'FamilyOtherBlues': ('\t', 'delta'), 'defaultWidthX': ('\x14', 'number'), 'OtherBlues': ('\x07', 'delta'), 'nominalWidthX': ('\x15', 'number'), 'StdHW': ('\n', 'number'), 'BlueValues': ('\x06', 'delta'), 'ExpansionFactor': ('\x0c\x12', 'number'), 'StdVW': ('\x0b', 'number'), 'BlueShift': ('\x0c\n', 'number'), 'LanguageGroup': ('\x0c\x11', 'number'), 'BlueFuzz': ('\x0c\x0b', 'number'), 'FamilyBlues': ('\x08', 'delta'), 'ForceBold': ('\x0c\x0e', 'number'), 'Subrs': ('\x13', 'number'), 'initialRandomSeed': ('\x0c\x13', 'number'), 'lenIV': ('\x0c\x10', 'number'), 'BlueScale': ('\x0c\t', 'number'), 'StemSnapV': ('\x0c\r', 'delta'), 'ForceBoldThreshold': ('\x0c\x0f', 'number')}
setPos(pos, endPos)
getChildren(strings)
class fontTools.cffLib.BaseDict(strings=None, file=None, offset=None)
decompile(data)
postDecompile()
getCompiler(strings, parent)
toXML(xmlWriter, progress)
fromXML((name, attrs, content))
class fontTools.cffLib.TopDict(strings=None, file=None, offset=None, GlobalSubrs=None)

Bases: fontTools.cffLib.BaseDict

defaults = {'CIDFontType': 0, 'StrokeWidth': 0, 'FontBBox': [0, 0, 0, 0], 'FontMatrix': [0.001, 0, 0, 0.001, 0, 0], 'Encoding': 0, 'CharstringType': 2, 'CIDFontRevision': 0, 'isFixedPitch': 0, 'PaintType': 0, 'UnderlineThickness': 50, 'CIDCount': 8720, 'ItalicAngle': 0, 'charset': 0, 'CIDFontVersion': 0}
converters = {'FontMatrix': <fontTools.cffLib.ArrayConverter instance at 0x107abf098>, 'isFixedPitch': <fontTools.cffLib.NumberConverter instance at 0x107abfbd8>, 'BaseFontName': <fontTools.cffLib.SimpleConverter instance at 0x107ac3ab8>, 'PostScript': <fontTools.cffLib.SimpleConverter instance at 0x107ac35a8>, 'BaseFontBlend': <fontTools.cffLib.ArrayConverter instance at 0x107ac3680>, 'CIDCount': <fontTools.cffLib.NumberConverter instance at 0x107ac3998>, 'XUID': <fontTools.cffLib.ArrayConverter instance at 0x107ac3170>, 'Notice': <fontTools.cffLib.Latin1Converter instance at 0x107adff80>, 'Copyright': <fontTools.cffLib.Latin1Converter instance at 0x107adfe60>, 'charset': <fontTools.cffLib.CharsetConverter instance at 0x107adf7a0>, 'FDArray': <fontTools.cffLib.FDArrayConverter instance at 0x10795d638>, 'version': <fontTools.cffLib.SimpleConverter instance at 0x107ac47e8>, 'UnderlinePosition': <fontTools.cffLib.NumberConverter instance at 0x107abfdd0>, 'FDSelect': <fontTools.cffLib.FDSelectConverter instance at 0x107adf200>, 'UnderlineThickness': <fontTools.cffLib.NumberConverter instance at 0x107abf3f8>, 'ItalicAngle': <fontTools.cffLib.NumberConverter instance at 0x107abf878>, 'ROS': <fontTools.cffLib.ROSConverter instance at 0x107adfd88>, 'CIDFontVersion': <fontTools.cffLib.NumberConverter instance at 0x107ac39e0>, 'CIDFontType': <fontTools.cffLib.NumberConverter instance at 0x107ac3a28>, 'UIDBase': <fontTools.cffLib.NumberConverter instance at 0x107ac3440>, 'CharstringType': <fontTools.cffLib.NumberConverter instance at 0x107abf248>, 'CIDFontRevision': <fontTools.cffLib.NumberConverter instance at 0x107ac3290>, 'FontName': <fontTools.cffLib.SimpleConverter instance at 0x107abfef0>, 'SyntheticBase': <fontTools.cffLib.NumberConverter instance at 0x107ac4878>, 'FullName': <fontTools.cffLib.SimpleConverter instance at 0x107ac4cb0>, 'StrokeWidth': <fontTools.cffLib.NumberConverter instance at 0x107abf9e0>, 'CharStrings': <fontTools.cffLib.CharStringsConverter instance at 0x10795d6c8>, 'Weight': <fontTools.cffLib.SimpleConverter instance at 0x107abf638>, 'Encoding': <fontTools.cffLib.EncodingConverter instance at 0x107adf830>, 'FamilyName': <fontTools.cffLib.SimpleConverter instance at 0x107abf290>, 'Private': <fontTools.cffLib.PrivateDictConverter instance at 0x107adfea8>, 'PaintType': <fontTools.cffLib.NumberConverter instance at 0x107abfab8>, 'UniqueID': <fontTools.cffLib.NumberConverter instance at 0x107abfe60>, 'FontBBox': <fontTools.cffLib.ArrayConverter instance at 0x107abf3b0>}
order = ['ROS', 'SyntheticBase', 'version', 'Notice', 'Copyright', 'FullName', 'FontName', 'FamilyName', 'Weight', 'isFixedPitch', 'ItalicAngle', 'UnderlinePosition', 'UnderlineThickness', 'PaintType', 'CharstringType', 'FontMatrix', 'UniqueID', 'FontBBox', 'StrokeWidth', 'XUID', 'PostScript', 'BaseFontName', 'BaseFontBlend', 'CIDFontVersion', 'CIDFontRevision', 'CIDFontType', 'CIDCount', 'charset', 'UIDBase', 'Encoding', 'Private', 'FDSelect', 'FDArray', 'CharStrings']
decompilerClass

alias of TopDictDecompiler

compilerClass

alias of TopDictCompiler

getGlyphOrder()
postDecompile()
toXML(xmlWriter, progress)
decompileAllCharStrings(progress)
class fontTools.cffLib.FontDict(strings=None, file=None, offset=None, GlobalSubrs=None)

Bases: fontTools.cffLib.BaseDict

defaults = {'CIDFontType': 0, 'StrokeWidth': 0, 'FontBBox': [0, 0, 0, 0], 'FontMatrix': [0.001, 0, 0, 0.001, 0, 0], 'Encoding': 0, 'CharstringType': 2, 'CIDFontRevision': 0, 'isFixedPitch': 0, 'PaintType': 0, 'UnderlineThickness': 50, 'CIDCount': 8720, 'ItalicAngle': 0, 'charset': 0, 'CIDFontVersion': 0}
converters = {'FontMatrix': <fontTools.cffLib.ArrayConverter instance at 0x107abf098>, 'isFixedPitch': <fontTools.cffLib.NumberConverter instance at 0x107abfbd8>, 'BaseFontName': <fontTools.cffLib.SimpleConverter instance at 0x107ac3ab8>, 'PostScript': <fontTools.cffLib.SimpleConverter instance at 0x107ac35a8>, 'BaseFontBlend': <fontTools.cffLib.ArrayConverter instance at 0x107ac3680>, 'CIDCount': <fontTools.cffLib.NumberConverter instance at 0x107ac3998>, 'XUID': <fontTools.cffLib.ArrayConverter instance at 0x107ac3170>, 'Notice': <fontTools.cffLib.Latin1Converter instance at 0x107adff80>, 'Copyright': <fontTools.cffLib.Latin1Converter instance at 0x107adfe60>, 'charset': <fontTools.cffLib.CharsetConverter instance at 0x107adf7a0>, 'FDArray': <fontTools.cffLib.FDArrayConverter instance at 0x10795d638>, 'version': <fontTools.cffLib.SimpleConverter instance at 0x107ac47e8>, 'UnderlinePosition': <fontTools.cffLib.NumberConverter instance at 0x107abfdd0>, 'FDSelect': <fontTools.cffLib.FDSelectConverter instance at 0x107adf200>, 'UnderlineThickness': <fontTools.cffLib.NumberConverter instance at 0x107abf3f8>, 'ItalicAngle': <fontTools.cffLib.NumberConverter instance at 0x107abf878>, 'ROS': <fontTools.cffLib.ROSConverter instance at 0x107adfd88>, 'CIDFontVersion': <fontTools.cffLib.NumberConverter instance at 0x107ac39e0>, 'CIDFontType': <fontTools.cffLib.NumberConverter instance at 0x107ac3a28>, 'UIDBase': <fontTools.cffLib.NumberConverter instance at 0x107ac3440>, 'CharstringType': <fontTools.cffLib.NumberConverter instance at 0x107abf248>, 'CIDFontRevision': <fontTools.cffLib.NumberConverter instance at 0x107ac3290>, 'FontName': <fontTools.cffLib.SimpleConverter instance at 0x107abfef0>, 'SyntheticBase': <fontTools.cffLib.NumberConverter instance at 0x107ac4878>, 'FullName': <fontTools.cffLib.SimpleConverter instance at 0x107ac4cb0>, 'StrokeWidth': <fontTools.cffLib.NumberConverter instance at 0x107abf9e0>, 'CharStrings': <fontTools.cffLib.CharStringsConverter instance at 0x10795d6c8>, 'Weight': <fontTools.cffLib.SimpleConverter instance at 0x107abf638>, 'Encoding': <fontTools.cffLib.EncodingConverter instance at 0x107adf830>, 'FamilyName': <fontTools.cffLib.SimpleConverter instance at 0x107abf290>, 'Private': <fontTools.cffLib.PrivateDictConverter instance at 0x107adfea8>, 'PaintType': <fontTools.cffLib.NumberConverter instance at 0x107abfab8>, 'UniqueID': <fontTools.cffLib.NumberConverter instance at 0x107abfe60>, 'FontBBox': <fontTools.cffLib.ArrayConverter instance at 0x107abf3b0>}
order = ['ROS', 'SyntheticBase', 'version', 'Notice', 'Copyright', 'FullName', 'FontName', 'FamilyName', 'Weight', 'isFixedPitch', 'ItalicAngle', 'UnderlinePosition', 'UnderlineThickness', 'PaintType', 'CharstringType', 'FontMatrix', 'UniqueID', 'FontBBox', 'StrokeWidth', 'XUID', 'PostScript', 'BaseFontName', 'BaseFontBlend', 'CIDFontVersion', 'CIDFontRevision', 'CIDFontType', 'CIDCount', 'charset', 'UIDBase', 'Encoding', 'Private', 'FDSelect', 'FDArray', 'CharStrings']
decompilerClass = None
compilerClass

alias of FontDictCompiler

getGlyphOrder()
toXML(xmlWriter, progress)
class fontTools.cffLib.PrivateDict(strings=None, file=None, offset=None)

Bases: fontTools.cffLib.BaseDict

defaults = {'defaultWidthX': 0, 'BlueFuzz': 1, 'ExpansionFactor': 0.06, 'nominalWidthX': 0, 'BlueShift': 7, 'LanguageGroup': 0, 'initialRandomSeed': 0, 'ForceBold': 0, 'BlueScale': 0.039625}
converters = {'StemSnapH': <fontTools.cffLib.ArrayConverter instance at 0x107ac5830>, 'FamilyOtherBlues': <fontTools.cffLib.ArrayConverter instance at 0x107ac5d88>, 'defaultWidthX': <fontTools.cffLib.NumberConverter instance at 0x107aa34d0>, 'OtherBlues': <fontTools.cffLib.ArrayConverter instance at 0x107ac5e18>, 'nominalWidthX': <fontTools.cffLib.NumberConverter instance at 0x107aa3320>, 'StdHW': <fontTools.cffLib.NumberConverter instance at 0x107ac5dd0>, 'BlueValues': <fontTools.cffLib.ArrayConverter instance at 0x10795d5f0>, 'ExpansionFactor': <fontTools.cffLib.NumberConverter instance at 0x107aa3830>, 'StdVW': <fontTools.cffLib.NumberConverter instance at 0x107ac5d40>, 'BlueShift': <fontTools.cffLib.NumberConverter instance at 0x107ac5200>, 'LanguageGroup': <fontTools.cffLib.NumberConverter instance at 0x106f82368>, 'BlueFuzz': <fontTools.cffLib.NumberConverter instance at 0x107ac5680>, 'FamilyBlues': <fontTools.cffLib.ArrayConverter instance at 0x107ac55a8>, 'ForceBold': <fontTools.cffLib.NumberConverter instance at 0x107ac5b00>, 'Subrs': <fontTools.cffLib.SubrsConverter instance at 0x10795d680>, 'initialRandomSeed': <fontTools.cffLib.NumberConverter instance at 0x107aa35a8>, 'lenIV': <fontTools.cffLib.NumberConverter instance at 0x107ac59e0>, 'BlueScale': <fontTools.cffLib.NumberConverter instance at 0x107ac52d8>, 'StemSnapV': <fontTools.cffLib.ArrayConverter instance at 0x107ac5a28>, 'ForceBoldThreshold': <fontTools.cffLib.NumberConverter instance at 0x107ac5758>}
order = ['BlueValues', 'OtherBlues', 'FamilyBlues', 'FamilyOtherBlues', 'BlueScale', 'BlueShift', 'BlueFuzz', 'StdHW', 'StdVW', 'StemSnapH', 'StemSnapV', 'ForceBold', 'ForceBoldThreshold', 'lenIV', 'LanguageGroup', 'ExpansionFactor', 'initialRandomSeed', 'defaultWidthX', 'nominalWidthX', 'Subrs']
decompilerClass

alias of PrivateDictDecompiler

compilerClass

alias of PrivateDictCompiler

class fontTools.cffLib.IndexedStrings(file=None)

SID -> string mapping.

getCompiler()
getSID(s)
getStrings()
buildStringMapping()