fontTools.ttLib.sfnt | index /code/fontTools/Lib/fontTools/ttLib/sfnt.py |
ttLib/sfnt.py -- low-level module to deal with the sfnt file format.
Defines two public classes:
SFNTReader
SFNTWriter
(Normally you don't have to use these classes explicitly; they are
used automatically by ttLib.TTFont.)
The reading and writing of sfnt files is separated in two distinct
classes, since whenever to number of tables changes or whenever
a table's length chages you need to rewrite the whole file anyway.
Modules | ||||||
|
Classes | ||||||||||||||||||||
|
Functions | ||
|
Data | ||
sfntDirectoryEntryFormat = '\n\t\t> # big endian\n\t\ttag: 4s\n\t\tcheckSum: l\n\t\toffset: l\n\t\tlength: l\n' sfntDirectoryEntrySize = 16 sfntDirectoryFormat = '\n\t\t> # big endian\n\t\tsfntVersion: 4s\n\t\tnumTabl...\trangeShift: H # numTables*16-searchRange\n' sfntDirectorySize = 12 |