Trait allsorts::tables::FontTableProvider
source · [−]pub trait FontTableProvider {
fn table_data<'a>(
&'a self,
tag: u32
) -> Result<Option<Cow<'a, [u8]>>, ParseError>;
fn has_table<'a>(&'a self, tag: u32) -> bool;
fn read_table_data<'a>(
&'a self,
tag: u32
) -> Result<Cow<'a, [u8]>, ParseError> { ... }
}
Required Methods
fn table_data<'a>(
&'a self,
tag: u32
) -> Result<Option<Cow<'a, [u8]>>, ParseError>
fn table_data<'a>(
&'a self,
tag: u32
) -> Result<Option<Cow<'a, [u8]>>, ParseError>
Return data for the specified table if present