Type Alias ExtensionSubstFormat1

Source
pub type ExtensionSubstFormat1<'a, T> = TableRef<'a, ExtensionSubstFormat1Marker<T>>;
Expand description

Aliased Type§

pub struct ExtensionSubstFormat1<'a, T> {
    pub(crate) shape: ExtensionSubstFormat1Marker<T>,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: ExtensionSubstFormat1Marker<T>§data: FontData<'a>

Implementations§

Source§

impl<'a> ExtensionSubstFormat1<'a, ()>

Source

pub(crate) fn into_concrete<T>(self) -> ExtensionSubstFormat1<'a, T>

Source§

impl<'a, T> ExtensionSubstFormat1<'a, T>

Source

pub(crate) fn of_unit_type(&self) -> ExtensionSubstFormat1<'a, ()>

Replace the specific generic type on this implementation with ()

Source§

impl<'a, T> ExtensionSubstFormat1<'a, T>

Source

pub fn subst_format(&self) -> u16

Format identifier. Set to 1.

Source

pub fn extension_lookup_type(&self) -> u16

Lookup type of subtable referenced by extensionOffset (that is, 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 ExtensionSubstFormat1 subtable.

Source

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

Attempt to resolve extension_offset.

Trait Implementations§

Source§

impl<'a, T: FontRead<'a> + SomeTable<'a> + 'a> Debug for ExtensionSubstFormat1<'a, T>

Source§

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

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

impl<'a, T: FontRead<'a>> ExtensionLookup<'a, T> for ExtensionSubstFormat1<'a, T>

Source§

impl<'a, T> FontRead<'a> for ExtensionSubstFormat1<'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: FontRead<'a> + SomeTable<'a> + 'a> SomeTable<'a> for ExtensionSubstFormat1<'a, T>

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.