Expand description
Common scalar data types used in font files
Macros§
- newtype_
scalar - An internal macro for implementing the
RawType
trait.
Structs§
- BigEndian
- A wrapper around raw big-endian bytes for some type.
- Bounding
Box - Minimum and maximum extents of a rectangular region.
- F2Dot14
- 16-bit signed fixed point number with 14 bits of fraction.
- F4Dot12
- 16-bit signed fixed point number with 12 bits of fraction.
- F6Dot10
- 16-bit signed fixed point number with 10 bits of fraction.
- F26Dot6
- 32-bit signed fixed point number with 6 bits of fraction.
- FWord
- 16-bit signed quantity in font design units.
- Fixed
- 32-bit signed fixed point number with 16 bits of fraction.
- GlyphId
- A 32-bit glyph identifier.
- Glyph
Id16 - A 16-bit glyph identifier.
- Int24
- 24-bit unsigned integer.
- Long
Date Time - A simple datetime type.
- Major
Minor - A type representing a major, minor version pair.
- NameId
- Identifier for an informational string (or name).
- Nullable
- An offset of a given width for which NULL (zero) is a valid value.
- Offset16
- A16-bit offset to a table.
- Offset24
- A24-bit offset to a table.
- Offset32
- A32-bit offset to a table.
- Point
- Two dimensional point with a generic coordinate type.
- Tag
- An OpenType tag.
- TryFrom
Glyph IdError - The error type returned when a glyph identifier conversion fails.
- UfWord
- 16-bit unsigned quantity in font design units.
- Uint24
- 24-bit unsigned integer.
- Version16
Dot16 - A legacy 16/16 version encoding Packed 32-bit value with major and minor version numbers.
Enums§
- Invalid
Tag - An error representing an invalid tag.
Constants§
- CFF_
SFNT_ VERSION - The SFNT version for fonts containing CFF outlines.
- TRUE_
SFNT_ VERSION - The SFNT version for legacy Apple fonts containing TrueType outlines.
- TTC_
HEADER_ TAG - The header tag for a font collection file.
- TT_
SFNT_ VERSION - The SFNT version for fonts containing TrueType outlines.
Traits§
- Compatible
- A trait for determining whether versions are compatible.
- Fixed
Size - A trait for types that have a known, constant size.
- Scalar
- A trait for font scalars.