pub type Hvar<'a> = TableRef<'a, HvarMarker>;
Expand description
The HVAR (Horizontal Metrics Variations) table
Aliased Type§
struct Hvar<'a> { /* private fields */ }
Implementations§
source§impl<'a> Hvar<'a>
impl<'a> Hvar<'a>
sourcepub fn version(&self) -> MajorMinor
pub fn version(&self) -> MajorMinor
Major version number of the horizontal metrics variations table — set to 1. Minor version number of the horizontal metrics variations table — set to 0.
sourcepub fn item_variation_store_offset(&self) -> Offset32
pub fn item_variation_store_offset(&self) -> Offset32
Offset in bytes from the start of this table to the item variation store table.
sourcepub fn item_variation_store(&self) -> Result<ItemVariationStore<'a>, ReadError>
pub fn item_variation_store(&self) -> Result<ItemVariationStore<'a>, ReadError>
Attempt to resolve item_variation_store_offset
.
sourcepub fn advance_width_mapping_offset(&self) -> Nullable<Offset32>
pub fn advance_width_mapping_offset(&self) -> Nullable<Offset32>
Offset in bytes from the start of this table to the delta-set index mapping for advance widths (may be NULL).
sourcepub fn advance_width_mapping(
&self,
) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
pub fn advance_width_mapping( &self, ) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
Attempt to resolve advance_width_mapping_offset
.
sourcepub fn lsb_mapping_offset(&self) -> Nullable<Offset32>
pub fn lsb_mapping_offset(&self) -> Nullable<Offset32>
Offset in bytes from the start of this table to the delta-set index mapping for left side bearings (may be NULL).
sourcepub fn lsb_mapping(&self) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
pub fn lsb_mapping(&self) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
Attempt to resolve lsb_mapping_offset
.
sourcepub fn rsb_mapping_offset(&self) -> Nullable<Offset32>
pub fn rsb_mapping_offset(&self) -> Nullable<Offset32>
Offset in bytes from the start of this table to the delta-set index mapping for right side bearings (may be NULL).
sourcepub fn rsb_mapping(&self) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
pub fn rsb_mapping(&self) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
Attempt to resolve rsb_mapping_offset
.
source§impl<'a> Hvar<'a>
impl<'a> Hvar<'a>
sourcepub fn advance_width_delta(
&self,
glyph_id: GlyphId,
coords: &[F2Dot14],
) -> Result<Fixed, ReadError>
pub fn advance_width_delta( &self, glyph_id: GlyphId, coords: &[F2Dot14], ) -> Result<Fixed, ReadError>
Returns the advance width delta for the specified glyph identifier and normalized variation coordinates.