Type Alias read_fonts::tables::gvar::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> Debug for GlyphVariationDataHeader<'a>

source§

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

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

impl<'a> FontRead<'a> for GlyphVariationDataHeader<'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 GlyphVariationDataHeader<'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.