#42 Deprecated method used for resource forks in OS X

closed-duplicate
nobody
Macintosh (1)
5
2011-06-29
2011-06-16
Cody Boisclair
No

FontTools fails to run whenever the res_name_or_index argument is provided on 64-bit Mac OS X. This is not because resource-fork fonts are deprecated (they're still very much supported in Snow Leopard), but rather, because, as described in http://goo.gl/yvOmw, the FSpOpenResFile method is deprecated as of Leopard and no longer available in 64-bit libraries as of Snow Leopard.

Given that the default Python installation on Snow Leopard is 64-bit, this is a bit of a problem.

The attached patch fixes this by replacing all FSpOpenResFile calls with FSOpenResourceFile for the appropriate named fork, as Apple's above-linked documentation recommends.

Discussion

  • Cody Boisclair
    Cody Boisclair
    2011-06-16

    Patch for FontTools on 64-bit OS X

     
    Attachments
  • Cody Boisclair
    Cody Boisclair
    2011-06-29

    • status: open --> open-duplicate
     
  • Cody Boisclair
    Cody Boisclair
    2011-06-29

    And I now see that this is a duplicate of Patch 3178810.

     
  • Cody Boisclair
    Cody Boisclair
    2011-06-29

    • status: open-duplicate --> closed-duplicate