You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Apologies for sending the incorrect link to American Gothic fonts. Those ones do indeed work. Let me know if you need me to send other examples.
I found the name strings that contained what you said were the null byte.
EASY FIX:
1.) Use Notepad++ and use Encoding > Convert to UTF-8.
It will convert the null byte and reveal a long sting of space characters in of one of the strings.
2.) I deleted the extra spaces...
3.) Save the .ttx
4.)use ttx -m to merge the font file with the .ttx file and no more errors!
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/
The text was updated successfully, but these errors were encountered: