fontTools.ttLib.tables.otConverters
index
/code/fontTools/Lib/fontTools/ttLib/tables/otConverters.py

 
Classes
       
BaseConverter
DeltaValue
SimpleValue
GlyphID
IntValue
Fixed
Long
Short
Count
UShort
ValueFormat
ValueRecord
Tag
Struct
Table
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)
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)

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)
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)
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)

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)
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)

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)

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)
Write a value to the writer.

 
class Struct(BaseConverter)
     Methods defined here:
read(self, reader, font, tableStack)
write(self, writer, font, tableStack, value)
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)

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)

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)

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)

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)

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)
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
        converterMapping = {'Fixed': <class fontTools.ttLib.tables.otConverters.Fixed at 0x1693c60>, 'GlyphID': <class fontTools.ttLib.tables.otConverters.GlyphID at 0x1693d50>, 'Offset': <class fontTools.ttLib.tables.otConverters.Table at 0x1693db0>, 'Tag': <class fontTools.ttLib.tables.otConverters.Tag at 0x1693d20>, 'ULONG': <class fontTools.ttLib.tables.otConverters.Long at 0x1693c30>, 'USHORT': <class fontTools.ttLib.tables.otConverters.UShort at 0x1693cc0>, 'ValueRecord': <class fontTools.ttLib.tables.otConverters.ValueRecord at 0x1693e40>, 'fixed32': <class fontTools.ttLib.tables.otConverters.Fixed at 0x1693c60>, 'int16': <class fontTools.ttLib.tables.otConverters.Short at 0x1693c90>, 'struct': <class fontTools.ttLib.tables.otConverters.Struct at 0x1693d80>, ...}