Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibGfx: Define and use OpenType data types for struct definitions
A few closely-related changes: - Move our definitions of the OpenType spec's "data types" into their own header file. - Add definitions for the integer types there too, for completeness. (Plus Uint16 matches the spec term, and is less verbose than BigEndian<u16>.) - Include Traits for the non-BigEndian types so that we can read them from Streams. (BigEndian<integer-type> already has this.) - Use the integer types in our struct definitions. As a bonus, this fixes a bug in Hmtx, which read the left-side bearings as i16 instead of BigEndian<i16>.
- Loading branch information