pub struct WoffFont<'a> {
pub scope: ReadScope<'a>,
pub woff_header: WoffHeader,
pub table_directory: ReadArray<'a, TableDirectoryEntry>,
}
Fields
scope: ReadScope<'a>
woff_header: WoffHeader
table_directory: ReadArray<'a, TableDirectoryEntry>
Implementations
sourceimpl<'a> WoffFont<'a>
impl<'a> WoffFont<'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
sourcepub fn find_table_directory_entry(
&self,
tag: u32
) -> Option<TableDirectoryEntry>
pub fn find_table_directory_entry(
&self,
tag: u32
) -> Option<TableDirectoryEntry>
Find the table directory entry for the given tag
Trait Implementations
sourceimpl<'a> FontTableProvider for WoffFont<'a>
impl<'a> FontTableProvider for WoffFont<'a>
sourceimpl<'a> ReadBinary<'a> for WoffFont<'a>
impl<'a> ReadBinary<'a> for WoffFont<'a>
sourceimpl<'a> SfntVersion for WoffFont<'a>
impl<'a> SfntVersion for WoffFont<'a>
fn sfnt_version(&self) -> u32
Auto Trait Implementations
impl<'a> RefUnwindSafe for WoffFont<'a>
impl<'a> Send for WoffFont<'a>
impl<'a> Sync for WoffFont<'a>
impl<'a> Unpin for WoffFont<'a>
impl<'a> UnwindSafe for WoffFont<'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