fontTools.ttLib.macUtils
index
/code/fontTools/Lib/fontTools/ttLib/macUtils.py

ttLib.macUtils.py -- Various Mac-specific stuff.

 
Modules
       
Carbon.Res
cStringIO
os
sys

 
Classes
       
SFNTResourceReader
SFNTResourceWriter

 
class SFNTResourceReader
    Simple (Mac-only) read-only file wrapper for 'sfnt' resources.
 
  Methods defined here:
__getattr__(self, attr)
__init__(self, path, res_name_or_index)

 
class SFNTResourceWriter
    Simple (Mac-only) file wrapper for 'sfnt' resources.
 
  Methods defined here:
__del__(self)
__getattr__(self, attr)
__init__(self, path, ttFont, res_id=None)
close(self)
createFond(self)

 
Functions
       
MyOpenResFile(path)
getSFNTResIndices(path)
Determine whether a file has a resource fork or not.
openTTFonts(path)
Given a pathname, return a list of TTFont objects. In the case 
of a flat TTF/OTF file, the list will contain just one font object;
but in the case of a Mac font suitcase it will contain as many
font objects as there are sfnt resources in the file.