macUtils

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

fontTools.ttLib.macUtils.getSFNTResIndices(path)[source]

Determine whether a file has a ‘sfnt’ resource fork or not.

fontTools.ttLib.macUtils.openTTFonts(path)[source]

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)[source]

Bases: BytesIO

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