pub struct Woff2Font<'a> {
pub scope: ReadScope<'a>,
pub woff_header: Woff2Header,
pub table_directory: Vec<TableDirectoryEntry>,
pub collection_directory: Option<Directory>,
pub table_data_block: Vec<u8>,
}
Fields
scope: ReadScope<'a>
woff_header: Woff2Header
table_directory: Vec<TableDirectoryEntry>
collection_directory: Option<Directory>
table_data_block: Vec<u8>
Implementations
sourceimpl<'a> Woff2Font<'a>
impl<'a> Woff2Font<'a>
sourcepub fn extended_metadata(&self) -> Result<Option<String>, ParseError>
pub fn extended_metadata(&self) -> Result<Option<String>, ParseError>
Decompress and return the extended metadata XML if present
pub fn table_data_block_scope(&'a self) -> ReadScope<'a>
pub fn find_table_entry(
&self,
tag: u32,
index: usize
) -> Option<&TableDirectoryEntry>
pub fn read_table(
&self,
tag: u32,
index: usize
) -> Result<Option<ReadBuf<'_>>, ParseError>
pub fn table_provider(
&self,
index: usize
) -> Result<Woff2TableProvider, ReadWriteError>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Woff2Font<'a>
impl<'a> Send for Woff2Font<'a>
impl<'a> Sync for Woff2Font<'a>
impl<'a> Unpin for Woff2Font<'a>
impl<'a> UnwindSafe for Woff2Font<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more