Description
Hi, I was testing TTX out.
here were a few fonts that were giving errors.
1.) I used TTX -t name to pull the name table out of the font, then, without altering the .ttx file,
2.) I immediately use TTX -m to merge the .ttf or .otf/.ttf file together.
I get the following error:
Compiling "giotto.ttx" to "giotto#1.ttf"... Parsing 'name' table... ERROR: Unhandled exception has occurred Traceback (most recent call last): File "C:\Users\Davexx\AppData\Local\Programs\Python\Python313\Lib\site-packages\fontTools\ttx.py", line 452, in main process(jobs, options) ~~~~~~~^^^^^^^^^^^^^^^ File "C:\Users\Davexx\AppData\Local\Programs\Python\Python313\Lib\site-packages\fontTools\ttx.py", line 434, in process action(input, output, options) ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Davexx\AppData\Local\Programs\Python\Python313\Lib\site-packages\fontTools\misc\loggingTools.py", line 375, in wrapper return func(*args, **kwds) File "C:\Users\Davexx\AppData\Local\Programs\Python\Python313\Lib\site-packages\fontTools\ttx.py", line 327, in ttCompile ttf.importXML(input) ~~~~~~~~~~~~~^^^^^^^ File "C:\Users\Davexx\AppData\Local\Programs\Python\Python313\Lib\site-packages\fontTools\ttLib\ttFont.py", line 404, in importXML reader.read() ~~~~~~~~~~~^^ File "C:\Users\Davexx\AppData\Local\Programs\Python\Python313\Lib\site-packages\fontTools\misc\xmlReader.py", line 52, in read self._parseFile(self.file) ~~~~~~~~~~~~~~~^^^^^^^^^^^ File "C:\Users\Davexx\AppData\Local\Programs\Python\Python313\Lib\site-packages\fontTools\misc\xmlReader.py", line 78, in _parseFile parser.Parse(chunk, 0) ~~~~~~~~~~~~^^^^^^^^^^ xml.parsers.expat.ExpatError: not well-formed (invalid token): line 6, column 6
Here are some example fonts to try where the TTX merge is not working:
https://fontmeme.com/fonts/opti-giotto-font/
https://fontmeme.com/fonts/american-gothic-font/