I'd like to manipulate name table data in a number of generated font files. So far I discovered how to access (and manipulate) name table entries that are already defined in the file:
from fontTools import ttLib
ttPath = '/Volumes/test.ttf'
ttFont = ttLib.TTFont(ttPath)
nameTable = ttFont['name'].names
>> [<NameRecord NameID=0; PlatformID=1; LanguageID=0>, ... ]
But what I'd like to do is to add new entries. I suppose I need to construct new NameRecord objects first in order to append them to the name table, but I have no idea how to achieve this.