However, any attempt fails with the following errors:
processing directory converted/Advent_Pro
convert google-fonts/Advent_Pro/AdventPro-BlackItalic.ttf into .af
b’TrueType’
Traceback (most recent call last):
File “/home/username/Downloads/Presto/picovector-fonts/./alright-fonts/afinate”, line 81, in
character_codepoints = sorted(set(character_codepoints + [ord(c) for c in line]))
^^^^^^^^^^^^^^^^^^^^
NameError: name ‘character_codepoints’ is not defined
As the error indicates, character_codepoints is not being initialised, and then the highlighted line features character_codepoints being used in a redefinition of the variable.
The reason for this appears to be that the --characters option is not being given. I imagine that if you specify the --corpus option, then you have to also specify the --characters option, but the code isn’t written to gracefully handle the situation where the latter option is omitted.
Since the code appears to read a list of characters from the corpus file, combining them with any set using the --characters option, maybe the default where the --characters option is omitted should be an empty list. Then again, maybe the default of the “ASCII” codepoints is more suitable. I wouldn’t be able to say.