encodings: Support for OpenType-specific encodings
fontTools includes support for some character encodings found in legacy Mac
TrueType fonts. Many of these legacy encodings have found their way into the
encodings library, but others still remain unimplemented.
fontTools.encodings.codecs will therefore add string
decode support for the following encodings:
fontTools also includes a package (
contains a mapping of glyph IDs to glyph names in the MacRoman character set:
>>> from fontTools.encodings.MacRoman import MacRoman >>> MacRoman 'twosuperior'