Type Alias read_fonts::tables::hmtx::Hmtx
source · 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.