pub type Hmtx<'a> = TableRef<'a, HmtxMarker>;
Expand description
The hmtx (Horizontal Metrics) table
Aliased Type§
struct Hmtx<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Hmtx<'a>
impl<'a> Hmtx<'a>
Sourcepub fn h_metrics(&self) -> &'a [LongMetric]
pub fn h_metrics(&self) -> &'a [LongMetric]
Paired advance width/height and left/top side bearing values for each glyph. Records are indexed by glyph ID.
Sourcepub fn left_side_bearings(&self) -> &'a [BigEndian<i16>]
pub fn left_side_bearings(&self) -> &'a [BigEndian<i16>]
Leading (left/top) side bearings for glyph IDs greater than or equal to numberOfLongMetrics.