Expand description
Experimental generic traversal of font tables.
This module defines functionality that allows untyped access to font table data. This is used as the basis for things like debug printing.
The basis of traversal is the SomeTable
trait, which is implemented for
all font tables. This trait provides the tableβs name, as well as ordered access
to the tableβs fields. Using this, it is possible to iterate through a table
and its subtables, records, and values.
Β§Warning
This functionality is considered experimental, and the API may break or be removed without warning.
StructsΒ§
- Array
Iter π - Array
OfOffsets π - Array
OfRecords π - Array
Offset - An offset to an array.
- Computed
Array πOfRecords - Debug
Print πArray - A wrapper type that implements
Debug
for any array. - Debug
Print πTable - A wrapper type that implements
Debug
for any table. - Field
- A generic field in a font table.
- Field
Iter π - Record
Resolver - A struct created from a record and the data it needs to resolve any contained offsets.
- Resolved
Offset - An offset, as well as the table it references.
- String
Offset - An offset to string data.
- VarLen
Array πOfRecords
EnumsΒ§
- Field
Type - Types of fields in font tables.
- Offset
Type - Any offset type.
TraitsΒ§
- Some
Array - A generic trait for arrays.
- Some
Record - A generic trait for records, which need to be passed in data in order to fully resolve themselves.
- Some
String - Some
Table - A generic table type.