Closed ironss closed 4 years ago
Using Linux, I try to generate a font.py file by pointing directly to a .TTF file
It fails with the error message 'Font filenames must be valid Python variable names.'
It does, however, allow me to generate an output file with a filename that is not a valid Python symbol.
I think the logic is reversed here. The OUTPUT filename should be a valid Python symbol, so it can be imported. The input font filename is irrelevant.
Well spotted, thank you. I will push an update shortly.
The test merely checks the first character to guard against names starting with characters such as digits.
Update now pushed.
Using Linux, I try to generate a font.py file by pointing directly to a .TTF file
It fails with the error message 'Font filenames must be valid Python variable names.'
It does, however, allow me to generate an output file with a filename that is not a valid Python symbol.
I think the logic is reversed here. The OUTPUT filename should be a valid Python symbol, so it can be imported. The input font filename is irrelevant.