| 1 |
############################################ |
| 2 |
macRes: Tools for reading Mac resource forks |
| 3 |
############################################ |
| 4 |
|
| 5 |
.. currentmodule:: fontTools.misc.macRes |
| 6 |
|
| 7 |
.. rubric:: Overview: |
| 8 |
:heading-level: 2 |
| 9 |
|
| 10 |
Classic Mac OS files are made up of two parts - the "data fork" which |
| 11 |
contains the file contents proper, and the "resource fork" which |
| 12 |
contains a number of structured data items called "resources". Some |
| 13 |
fonts, such as Mac "font suitcases" and Type 1 LWFN fonts, still use |
| 14 |
the resource fork for this kind of structured data, and so to read |
| 15 |
them, fontTools needs to have access to resource forks. |
| 16 |
|
| 17 |
The Inside Macintosh volume `More Macintosh Toolbox |
| 18 |
<https://developer.apple.com/library/archive/documentation/mac/pdf/MoreMacintoshToolbox.pdf#page=34>`_ |
| 19 |
explains the structure of resource and data forks. |
| 20 |
|
| 21 |
.. automodule:: fontTools.misc.macRes |
| 22 |
:members: ResourceReader, Resource |
| 23 |
:undoc-members: |
| 24 |
:member-order: bysource |