Crate font_types
source ·Expand description
Common scalar data types used in font files
Macros
An internal macro for implementing the
RawType trait.Structs
A wrapper around raw big-endian bytes for some type.
16-bit signed fixed point number with 14 bits of fraction.
16-bit signed quantity in font design units.
32-bit signed fixed point number with 16 bits of fraction.
A 16-bit glyph identifier.
A simple datetime type.
A type representing a major, minor version pair.
An offset of a given width for which NULL (zero) is a valid value.
A16-bit offset to a table.
A24-bit offset to a table.
A32-bit offset to a table.
An OpenType tag.
16-bit unsigned quantity in font design units.
24-bit unsigned integer.
A legacy 16/16 version encoding
Packed 32-bit value with major and minor version numbers.
Enums
An error representing an invalid tag.
Constants
The SFNT version for fonts containing CFF outlines.
The header tag for a font collection file.
The SFNT version for fonts containing TrueType outlines.
Traits
A trait for determining whether versions are compatible.
A trait for types that have a known, constant size.
A trait for types that can be read from raw bytes.
A trait for font scalars.