afmLib

Module for reading and writing AFM files.

class fontTools.afmLib.AFM(path=None)[source]
addComment(comment)[source]
addComposite(glyphName, components)[source]
chars()[source]
comments()[source]
has_char(char)[source]
has_kernpair(pair)[source]
kernpairs()[source]
parseattr(word, rest)[source]
parsechar(rest)[source]
parsecomposite(rest)[source]
parsekernpair(rest)[source]
read(path)[source]
write(path, sep='\r')[source]
exception fontTools.afmLib.error[source]
fontTools.afmLib.readlines(path)[source]
fontTools.afmLib.writelines(path, lines, sep='\r')[source]