read_fonts::tables::base

Type Alias BaseValues

Source
pub type BaseValues<'a> = TableRef<'a, BaseValuesMarker>;
Expand description

BaseValues table

Aliased Type§

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

Implementations§

Source§

impl<'a> BaseValues<'a>

Source

pub fn default_baseline_index(&self) -> u16

Index number of default baseline for this script — equals index position of baseline tag in baselineTags array of the BaseTagList

Source

pub fn base_coord_count(&self) -> u16

Number of BaseCoord tables defined — should equal baseTagCount in the BaseTagList

Source

pub fn base_coord_offsets(&self) -> &'a [BigEndian<Offset16>]

Array of offsets to BaseCoord tables, from beginning of BaseValues table — order matches baselineTags array in the BaseTagList

Source

pub fn base_coords(&self) -> ArrayOfOffsets<'a, BaseCoord<'a>, Offset16>

A dynamically resolving wrapper for base_coord_offsets.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for BaseValues<'a>

Source§

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

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