#47 Incorrect file type guessing (TTX vs OTX)

Feature request
closed-fixed
Paul Wise
None
5
2013-06-22
2012-11-12
No

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...)

Discussion

  • Paul Wise
    Paul Wise
    2013-06-22

    • status: open --> closed-fixed
    • assigned_to: Paul Wise
    • Group: --> Feature request
     
  • Paul Wise
    Paul Wise
    2013-06-22

    Fixed in SVN, thanks for the report.