fontTools.ttLib.tables.otConverters
index
/home/mcfletch/pylive/fontTools/ttLib/tables/otConverters.py

 
Classes
       
BaseConverter
DeltaValue
SimpleValue
GlyphID
IntValue
Fixed
Long
Short
Count
UShort
ValueFormat
ValueRecord
Tag
Struct
Table
ExtSubTable
SubTable

 
class BaseConverter
    Base class for converter objects. Apart from the constructor, this
is an abstract class.
 
  Methods defined here:
__init__(self, name, repeat, repeatOffset, tableClass)
read(self, reader, font, tableStack)
Read a value from the reader.
write(self, writer, font, tableStack, value, repeatIndex=None)
Write a value to the writer.
xmlRead(self, attrs, content, font)
Read a value from XML.
xmlWrite(self, xmlWriter, font, value, name, attrs)
Write a value to XML.

 
class Count(Short)
    
Method resolution order:
Count
Short
IntValue
SimpleValue
BaseConverter

Methods defined here:
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from Short:
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value, repeatIndex=None)

Methods inherited from IntValue:
xmlRead(self, attrs, content, font)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)

 
class DeltaValue(BaseConverter)
     Methods defined here:
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value, repeatIndex=None)
xmlRead(self, attrs, content, font)
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)

 
class ExtSubTable(Table)
    
Method resolution order:
ExtSubTable
Table
Struct
BaseConverter

Methods defined here:
getConverter(self, tableType, lookupType)
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value, repeatIndex=None)

Methods inherited from Struct:
xmlRead(self, attrs, content, font)
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)

 
class Fixed(IntValue)
    
Method resolution order:
Fixed
IntValue
SimpleValue
BaseConverter

Methods defined here:
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value, repeatIndex=None)
xmlRead(self, attrs, content, font)

Methods inherited from SimpleValue:
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)

 
class GlyphID(SimpleValue)
    
Method resolution order:
GlyphID
SimpleValue
BaseConverter

Methods defined here:
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value, repeatIndex=None)

Methods inherited from SimpleValue:
xmlRead(self, attrs, content, font)
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)

 
class IntValue(SimpleValue)
    
Method resolution order:
IntValue
SimpleValue
BaseConverter

Methods defined here:
xmlRead(self, attrs, content, font)

Methods inherited from SimpleValue:
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)
read(self, reader, font, tableStack)
Read a value from the reader.
write(self, writer, font, tableStack, value, repeatIndex=None)
Write a value to the writer.

 
class Long(IntValue)
    
Method resolution order:
Long
IntValue
SimpleValue
BaseConverter

Methods defined here:
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value, repeatIndex=None)

Methods inherited from IntValue:
xmlRead(self, attrs, content, font)

Methods inherited from SimpleValue:
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)

 
class Short(IntValue)
    
Method resolution order:
Short
IntValue
SimpleValue
BaseConverter

Methods defined here:
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value, repeatIndex=None)

Methods inherited from IntValue:
xmlRead(self, attrs, content, font)

Methods inherited from SimpleValue:
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)

 
class SimpleValue(BaseConverter)
     Methods defined here:
xmlRead(self, attrs, content, font)
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)
read(self, reader, font, tableStack)
Read a value from the reader.
write(self, writer, font, tableStack, value, repeatIndex=None)
Write a value to the writer.

 
class Struct(BaseConverter)
     Methods defined here:
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value, repeatIndex=None)
xmlRead(self, attrs, content, font)
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)

 
class SubTable(Table)
    
Method resolution order:
SubTable
Table
Struct
BaseConverter

Methods defined here:
getConverter(self, tableType, lookupType)

Methods inherited from Table:
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value, repeatIndex=None)

Methods inherited from Struct:
xmlRead(self, attrs, content, font)
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)

 
class Table(Struct)
    
Method resolution order:
Table
Struct
BaseConverter

Methods defined here:
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value, repeatIndex=None)

Methods inherited from Struct:
xmlRead(self, attrs, content, font)
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)

 
class Tag(SimpleValue)
    
Method resolution order:
Tag
SimpleValue
BaseConverter

Methods defined here:
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value, repeatIndex=None)

Methods inherited from SimpleValue:
xmlRead(self, attrs, content, font)
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)

 
class UShort(IntValue)
    
Method resolution order:
UShort
IntValue
SimpleValue
BaseConverter

Methods defined here:
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value, repeatIndex=None)

Methods inherited from IntValue:
xmlRead(self, attrs, content, font)

Methods inherited from SimpleValue:
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from BaseConverter:
__init__(self, name, repeat, repeatOffset, tableClass)

 
class ValueFormat(IntValue)
    
Method resolution order:
ValueFormat
IntValue
SimpleValue
BaseConverter

Methods defined here:
__init__(self, name, repeat, repeatOffset, tableClass)
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, format, repeatIndex=None)

Methods inherited from IntValue:
xmlRead(self, attrs, content, font)

Methods inherited from SimpleValue:
xmlWrite(self, xmlWriter, font, value, name, attrs)

 
class ValueRecord(ValueFormat)
    
Method resolution order:
ValueRecord
ValueFormat
IntValue
SimpleValue
BaseConverter

Methods defined here:
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value, repeatIndex=None)
xmlRead(self, attrs, content, font)
xmlWrite(self, xmlWriter, font, value, name, attrs)

Methods inherited from ValueFormat:
__init__(self, name, repeat, repeatOffset, tableClass)

 
Functions
       
buildConverters(tableSpec, tableNamespace)
Given a table spec from otData.py, build a converter object for each
field of the table. This is called for each table in otData.py, and
the results are assigned to the corresponding class in otTables.py.

 
Data
        __file__ = '/home/mcfletch/pylive/fontTools/ttLib/tables/otConverters.pyc'
__name__ = 'fontTools.ttLib.tables.otConverters'
__package__ = 'fontTools.ttLib.tables'
converterMapping = {'Fixed': <class fontTools.ttLib.tables.otConverters.Fixed at 0x4d22fb0>, 'GlyphID': <class fontTools.ttLib.tables.otConverters.GlyphID at 0x4d401d0>, 'LOffset': <class fontTools.ttLib.tables.otConverters.ExtSubTable at 0x4d40350>, 'Offset': <class fontTools.ttLib.tables.otConverters.Table at 0x4d40290>, 'Tag': <class fontTools.ttLib.tables.otConverters.Tag at 0x4d40170>, 'ULONG': <class fontTools.ttLib.tables.otConverters.Long at 0x4d22f50>, 'USHORT': <class fontTools.ttLib.tables.otConverters.UShort at 0x4d400b0>, 'ValueRecord': <class fontTools.ttLib.tables.otConverters.ValueRecord at 0x4d40410>, 'fixed32': <class fontTools.ttLib.tables.otConverters.Fixed at 0x4d22fb0>, 'int16': <class fontTools.ttLib.tables.otConverters.Short at 0x4d40050>, ...}