read_fonts::tables::gpos

Type Alias Gpos

Source
pub type Gpos<'a> = TableRef<'a, GposMarker>;
Expand description

Aliased Type§

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

Implementations§

Source§

impl<'a> Gpos<'a>

Source

pub fn version(&self) -> MajorMinor

The major and minor version of the GPOS table, as a tuple (u16, u16)

Source

pub fn script_list_offset(&self) -> Offset16

Offset to ScriptList table, from beginning of GPOS table

Source

pub fn script_list(&self) -> Result<ScriptList<'a>, ReadError>

Attempt to resolve script_list_offset.

Source

pub fn feature_list_offset(&self) -> Offset16

Offset to FeatureList table, from beginning of GPOS table

Source

pub fn feature_list(&self) -> Result<FeatureList<'a>, ReadError>

Attempt to resolve feature_list_offset.

Source

pub fn lookup_list_offset(&self) -> Offset16

Offset to LookupList table, from beginning of GPOS table

Source

pub fn lookup_list(&self) -> Result<PositionLookupList<'a>, ReadError>

Attempt to resolve lookup_list_offset.

Source

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

Source

pub fn feature_variations( &self, ) -> Option<Result<FeatureVariations<'a>, ReadError>>

Attempt to resolve feature_variations_offset.

Source§

impl<'a, T> TableRef<'a, T>

Source

pub fn resolve_offset<O: Offset, R: FontRead<'a>>( &self, offset: O, ) -> Result<R, ReadError>

Resolve the provided offset from the start of this table.

Source

pub fn offset_data(&self) -> FontData<'a>

Return a reference to this table’s raw data.

We use this in the compile crate to resolve offsets.

Source

pub fn shape(&self) -> &T

Return a reference to the table’s ‘Shape’ struct.

This is a low level implementation detail, but it can be useful in some cases where you want to know things about a table’s layout, such as the byte offsets of specific fields.

Trait Implementations§

Source§

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

Source§

const TAG: Tag

GPOS

Source§

impl<'a, T: Clone> Clone for TableRef<'a, T>

Source§

fn clone(&self) -> TableRef<'a, T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more