read_fonts::tables::gpos

Type Alias ExtensionPosFormat1

Source
pub type ExtensionPosFormat1<'a, T> = TableRef<'a, ExtensionPosFormat1Marker<T>>;
Expand description

Aliased Type§

struct ExtensionPosFormat1<'a, T> { /* private fields */ }

Implementations§

Source§

impl<'a, T> ExtensionPosFormat1<'a, T>

Source

pub fn pos_format(&self) -> u16

Format identifier: format = 1

Source

pub fn extension_lookup_type(&self) -> u16

Lookup type of subtable referenced by extensionOffset (i.e. the extension subtable).

Source

pub fn extension_offset(&self) -> Offset32

Offset to the extension subtable, of lookup type extensionLookupType, relative to the start of the ExtensionPosFormat1 subtable.

Source

pub fn extension(&self) -> Result<T, ReadError>
where T: FontRead<'a>,

Attempt to resolve extension_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, T: FontRead<'a>> ExtensionLookup<'a, T> for ExtensionPosFormat1<'a, T>

Source§

impl<'a, T> FontRead<'a> for ExtensionPosFormat1<'a, T>

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, 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