macUtils

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

fontTools.ttLib.macUtils.MyOpenResFile(path)
fontTools.ttLib.macUtils.getSFNTResIndices(path)

Determine whether a file has a resource fork or not.

fontTools.ttLib.macUtils.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.

class fontTools.ttLib.macUtils.SFNTResourceReader(path, res_name_or_index)

Simple (Mac-only) read-only file wrapper for ‘sfnt’ resources.

class fontTools.ttLib.macUtils.SFNTResourceWriter(path, ttFont, res_id=None)

Simple (Mac-only) file wrapper for ‘sfnt’ resources.

close()
createFond()