Type Alias read_fonts::tables::hvar::Hvar

source ·
pub type Hvar<'a> = TableRef<'a, HvarMarker>;
Expand description

Aliased Type§

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

Implementations§

source§

impl<'a> Hvar<'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_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).

source

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

Attempt to resolve advance_width_mapping_offset.

source

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

source

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

Attempt to resolve lsb_mapping_offset.

source

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

source

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

Attempt to resolve rsb_mapping_offset.

source§

impl<'a> Hvar<'a>

source

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.

source

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

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

source

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

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

Trait Implementations§

source§

impl<'a> Debug for Hvar<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> FontRead<'a> for Hvar<'a>

source§

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

Read an instace of Self from the provided data, performing validation. Read more
source§

impl<'a> SomeTable<'a> for Hvar<'a>

source§

fn type_name(&self) -> &str

The name of this table
source§

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Access this table’s fields, in declaration order.
source§

impl TopLevelTable for Hvar<'_>

source§

const TAG: Tag = _

HVAR