pub type Vvar<'a> = TableRef<'a, VvarMarker>;
Expand description
The VVAR (Vertical Metrics Variations) table
Aliased Type§
struct Vvar<'a> { /* private fields */ }
Implementations§
source§impl<'a> Vvar<'a>
impl<'a> Vvar<'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_height_mapping_offset(&self) -> Nullable<Offset32>
pub fn advance_height_mapping_offset(&self) -> Nullable<Offset32>
Offset in bytes from the start of this table to the delta-set index mapping for advance heights (may be NULL).
sourcepub fn advance_height_mapping(
&self,
) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
pub fn advance_height_mapping( &self, ) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
Attempt to resolve advance_height_mapping_offset
.
sourcepub fn tsb_mapping_offset(&self) -> Nullable<Offset32>
pub fn tsb_mapping_offset(&self) -> Nullable<Offset32>
Offset in bytes from the start of this table to the delta-set index mapping for top side bearings (may be NULL).
sourcepub fn tsb_mapping(&self) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
pub fn tsb_mapping(&self) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
Attempt to resolve tsb_mapping_offset
.
sourcepub fn bsb_mapping_offset(&self) -> Nullable<Offset32>
pub fn bsb_mapping_offset(&self) -> Nullable<Offset32>
Offset in bytes from the start of this table to the delta-set index mapping for bottom side bearings (may be NULL).
sourcepub fn bsb_mapping(&self) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
pub fn bsb_mapping(&self) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
Attempt to resolve bsb_mapping_offset
.
sourcepub fn v_org_mapping_offset(&self) -> Nullable<Offset32>
pub fn v_org_mapping_offset(&self) -> Nullable<Offset32>
Offset in bytes from the start of this table to the delta-set index mapping for Y coordinates of vertical origins (may be NULL).
sourcepub fn v_org_mapping(&self) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
pub fn v_org_mapping(&self) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>
Attempt to resolve v_org_mapping_offset
.
source§impl<'a> Vvar<'a>
impl<'a> Vvar<'a>
sourcepub fn advance_height_delta(
&self,
glyph_id: GlyphId,
coords: &[F2Dot14],
) -> Result<Fixed, ReadError>
pub fn advance_height_delta( &self, glyph_id: GlyphId, coords: &[F2Dot14], ) -> Result<Fixed, ReadError>
Returns the advance height delta for the specified glyph identifier and normalized variation coordinates.
sourcepub fn tsb_delta(
&self,
glyph_id: GlyphId,
coords: &[F2Dot14],
) -> Result<Fixed, ReadError>
pub fn tsb_delta( &self, glyph_id: GlyphId, coords: &[F2Dot14], ) -> Result<Fixed, ReadError>
Returns the top side bearing delta for the specified glyph identifier and normalized variation coordinates.