read_fonts::tables::layout

Trait ExtensionLookup

source
pub trait ExtensionLookup<'a, T: FontRead<'a>>: FontRead<'a> {
    // Required method
    fn extension(&self) -> Result<T, ReadError>;
}
Expand description

A trait that abstracts the behaviour of an extension subtable

This is necessary because GPOS and GSUB have different concrete types for their extension lookups.

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

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

source§

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