pub trait FontTableProvider {
// Required methods
fn table_data(&self, tag: u32) -> Result<Option<Cow<'_, [u8]>>, ParseError>;
fn has_table(&self, tag: u32) -> bool;
fn table_tags(&self) -> Option<Vec<u32>>;
// Provided method
fn read_table_data(&self, tag: u32) -> Result<Cow<'_, [u8]>, ParseError> { ... }
}Required Methods§
Sourcefn table_data(&self, tag: u32) -> Result<Option<Cow<'_, [u8]>>, ParseError>
fn table_data(&self, tag: u32) -> Result<Option<Cow<'_, [u8]>>, ParseError>
Return data for the specified table if present
fn has_table(&self, tag: u32) -> bool
The tags of the tables within this font.
Returns None if the tags cannot be determined.