[MPEG-OTSPEC] "font directory" / "offset table" / "table directory"

Simon Cozens simon at simon-cozens.org
Mon Aug 31 10:29:17 CEST 2020


On 29/08/2020 23:43, Peter Constable wrote:
> An alternative would be a clean-up of Apple’s terminology:
> 
>   * “Font Directory” is comprised of the “Offset Table” followed
>     directly by the “Table Directory”.
>   * “Offset Table” is comprised of five members, sfntVersion to rangeShift.

That would mean that the "Offset Table" has neither any offsets in it 
nor any information relating to offsets...

> Yet another alternative would be to use “Font Directory” as a formal 
> struct name that includes tableRecords[] as a member, so “offset table” 
> would not be used in the formal description.

Commontype does something very similar, but with "table directory" 
instead of "font directory" (because that top level structure is a 
directory... of tables...). So it calls the whole thing from byte 0 of a 
non-collection file to byte 12+numTables*20 the "table directory", which 
contains a number of "table directory entries". No "offset table" or 
"font directory".

S


More information about the mpeg-otspec mailing list