Type Alias read_fonts::tables::varc::Varc

source ·
pub type Varc<'a> = TableRef<'a, VarcMarker>;
Expand description

VARC (Variable Composites / Components Table)

FontTools VARC

Aliased Type§

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

Implementations§

source§

impl<'a> Varc<'a>

source

pub fn version(&self) -> MajorMinor

Major/minor version number. Set to 1.0.

source

pub fn coverage_offset(&self) -> Offset32

source

pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>

Attempt to resolve coverage_offset.

source

pub fn multi_var_store_offset(&self) -> Nullable<Offset32>

source

pub fn multi_var_store( &self, ) -> Option<Result<MultiItemVariationStore<'a>, ReadError>>

Attempt to resolve multi_var_store_offset.

source

pub fn condition_list_offset(&self) -> Nullable<Offset32>

source

pub fn condition_list(&self) -> Option<Result<ConditionList<'a>, ReadError>>

Attempt to resolve condition_list_offset.

source

pub fn axis_indices_list_offset(&self) -> Nullable<Offset32>

source

pub fn axis_indices_list(&self) -> Option<Result<Index2<'a>, ReadError>>

Attempt to resolve axis_indices_list_offset.

source

pub fn var_composite_glyphs_offset(&self) -> Offset32

source

pub fn var_composite_glyphs(&self) -> Result<Index2<'a>, ReadError>

Attempt to resolve var_composite_glyphs_offset.

source§

impl<'a> Varc<'a>

source

pub fn axis_indices(&self, nth: usize) -> Result<PackedDeltas<'_>, ReadError>

Friendlier accessor than directly using raw data via Index2

source

pub fn glyph(&self, nth: usize) -> Result<VarcGlyph<'_>, ReadError>

Friendlier accessor than directly using raw data via Index2

nth would typically be obtained by looking up a GlyphId in Self::coverage.

Trait Implementations§

source§

impl<'a> Debug for Varc<'a>

source§

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

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

impl<'a> FontRead<'a> for Varc<'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<'a> SomeTable<'a> for Varc<'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 Varc<'_>

source§

const TAG: Tag = _

VARC