Type Alias Axis

Source
pub type Axis<'a> = TableRef<'a, AxisMarker>;
Expand description

Aliased Type§

pub struct Axis<'a> {
    pub(crate) shape: AxisMarker,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: AxisMarker§data: FontData<'a>

Implementations§

Source§

impl<'a> Axis<'a>

Source

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

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

Source

pub fn base_tag_list(&self) -> Option<Result<BaseTagList<'a>, ReadError>>

Attempt to resolve base_tag_list_offset.

Source

pub fn base_script_list_offset(&self) -> Offset16

Offset to BaseScriptList table, from beginning of Axis table

Source

pub fn base_script_list(&self) -> Result<BaseScriptList<'a>, ReadError>

Attempt to resolve base_script_list_offset.

Trait Implementations§

Source§

impl<'a> Debug for Axis<'a>

Source§

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

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

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