Type Alias Trak

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

The tracking (trak) table.

Aliased Type§

pub struct Trak<'a> { /* private fields */ }

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> 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 TopLevelTable for Trak<'_>

Source§

const TAG: Tag

trak