read_fonts::tables::gvar

Type Alias GlyphVariationDataHeader

Source
pub type GlyphVariationDataHeader<'a> = TableRef<'a, GlyphVariationDataHeaderMarker>;
Expand description

Aliased Type§

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

Implementations§

Source§

impl<'a> GlyphVariationDataHeader<'a>

Source

pub fn tuple_variation_count(&self) -> TupleVariationCount

A packed field. The high 4 bits are flags, and the low 12 bits are the number of tuple variation tables for this glyph. The number of tuple variation tables can be any number between 1 and 4095.

Source

pub fn serialized_data_offset(&self) -> Offset16

Offset from the start of the GlyphVariationData table to the serialized data

Source

pub fn serialized_data(&self) -> Result<FontData<'a>, ReadError>

Attempt to resolve serialized_data_offset.

Source

pub fn tuple_variation_headers( &self, ) -> VarLenArray<'a, TupleVariationHeader<'_>>

Array of tuple variation headers.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for GlyphVariationDataHeader<'a>

Source§

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

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