Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Appendix B - International Resources / Encoding/Rendering Resource (Type 'itl5')


Resource Header

The header for the encoding/rendering resource is the same for 1-byte and 2-byte script systems. Its format is general enough to allow new tables to be added in the future. This is the definition of the resource-header format:

TYPE  Itl5Record = 
   RECORD
      versionNumber:    Fixed;
      numberOfTables:   Integer;
      reserved:         ARRAY[0..2] OF Integer;
      tableDirectory:   ARRAY[0..0] OF TableDirectoryRecord;
   END;
Field Description
versionNumber
The version of this 'itl5' resource.
numberOfTables
The number of tables this resource contains.
reserved
(for internal use)
tableDirectory
A directory of all the tables in the resource. Each entry in the directory is a table directory record, with this format:
               TYPE  TableDirectoryRecord = 
                  RECORD
                     tableSignature:   OSType ;
                     reserved:         LongInt;
                     tableStartOffset: LongInt; 
                     tableSize:        LongInt;
                  END;
Field Description
tableSignature
A 4-byte tag (of type OSType) that identifies the kind of table this record refers to.
reserved
(for internal use)
tableStartOffset
The number of bytes from the beginning of the resource to the beginning of the table.
tableSize
The length of the table, in bytes.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996