Type Alias Trak

Source
pub type Trak<'a> = TableRef<'a, TrakMarker>;
Expand description

The tracking (trak) table.

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> Trak<'a>

Source

pub fn version(&self) -> MajorMinor

Version number of the tracking table (0x00010000 for the current version).

Source

pub fn format(&self) -> u16

Format of the tracking table (set to 0).

Source

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

Offset from start of tracking table to TrackData for horizontal text (or 0 if none).

Source

pub fn horiz(&self) -> Option<Result<TrackData<'a>, ReadError>>

Attempt to resolve horiz_offset.

Source

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

Offset from start of tracking table to TrackData for vertical text (or 0 if none).

Source

pub fn vert(&self) -> Option<Result<TrackData<'a>, ReadError>>

Attempt to resolve vert_offset.

Trait Implementations§

Source§

impl<'a> Debug for Trak<'a>

Source§

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

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

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

Source§

const TAG: Tag

trak