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

source§

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

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

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