The code that attempts to detect the input file type uses this hardcoded string to recognize a ttx file that corresponds to an otf font:
<ttFont sfntVersion="OTTO" ttLibVersion="2.3">
Thus, this perfectly equivalent XML notation is not recognized as otf:
<ttFont sfntVersion='OTTO' ttLibVersion='2.3'>
(notice the single quotes)
In Windows, this can make the difference between a correct font and a font that fails to load (actually just changing the file extension works, but I spent a full day understanding this...)
Log in to post a comment.