Type Alias read_fonts::tables::base::Base

source ·
pub type Base<'a> = TableRef<'a, BaseMarker>;
Expand description

The BASE (Baseline) table

Aliased Type§

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

Implementations§

source§

impl<'a> Base<'a>

source

pub fn version(&self) -> MajorMinor

(major, minor) Version for the BASE table (1,0) or (1,1)

source

pub fn horiz_axis_offset(&self) -> Nullable<Offset16>

Offset to horizontal Axis table, from beginning of BASE table (may be NULL)

source

pub fn horiz_axis(&self) -> Option<Result<Axis<'a>, ReadError>>

Attempt to resolve horiz_axis_offset.

source

pub fn vert_axis_offset(&self) -> Nullable<Offset16>

Offset to vertical Axis table, from beginning of BASE table (may be NULL)

source

pub fn vert_axis(&self) -> Option<Result<Axis<'a>, ReadError>>

Attempt to resolve vert_axis_offset.

source

pub fn item_var_store_offset(&self) -> Option<Nullable<Offset32>>

Offset to Item Variation Store table, from beginning of BASE table (may be null)

source

pub fn item_var_store( &self, ) -> Option<Result<ItemVariationStore<'a>, ReadError>>

Attempt to resolve item_var_store_offset.

Trait Implementations§

source§

impl<'a> Debug for Base<'a>

source§

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

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

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

source§

const TAG: Tag = _

BASE