read_fonts::tables::vvar

Type Alias Vvar

Source
pub type Vvar<'a> = TableRef<'a, VvarMarker>;
Expand description

Aliased Type§

struct Vvar<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> Vvar<'a>

Source

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.

Source

pub fn item_variation_store_offset(&self) -> Offset32

Offset in bytes from the start of this table to the item variation store table.

Source

pub fn item_variation_store(&self) -> Result<ItemVariationStore<'a>, ReadError>

Attempt to resolve item_variation_store_offset.

Source

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).

Source

pub fn advance_height_mapping( &self, ) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>

Attempt to resolve advance_height_mapping_offset.

Source

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).

Source

pub fn tsb_mapping(&self) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>

Attempt to resolve tsb_mapping_offset.

Source

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).

Source

pub fn bsb_mapping(&self) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>

Attempt to resolve bsb_mapping_offset.

Source

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).

Source

pub fn v_org_mapping(&self) -> Option<Result<DeltaSetIndexMap<'a>, ReadError>>

Attempt to resolve v_org_mapping_offset.

Source§

impl<'a> Vvar<'a>

Source

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.

Source

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.

Source

pub fn bsb_delta( &self, glyph_id: GlyphId, coords: &[F2Dot14], ) -> Result<Fixed, ReadError>

Returns the bottom side bearing delta for the specified glyph identifier and normalized variation coordinates.

Source

pub fn v_org_delta( &self, glyph_id: GlyphId, coords: &[F2Dot14], ) -> Result<Fixed, ReadError>

Returns the vertical origin delta for the specified glyph identifier and normalized variation coordinates.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for Vvar<'a>

Source§

fn read(data: FontData<'a>) -> Result<Self, ReadError>

Read an instance of Self from the provided data, performing validation. Read more
Source§

impl TopLevelTable for Vvar<'_>

Source§

const TAG: Tag = _

VVAR