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§
Source§impl<'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§
Source§impl<'a> FontTableProvider for WoffFont<'a>
impl<'a> FontTableProvider for WoffFont<'a>
Source§fn 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. Read more
fn read_table_data(&self, tag: u32) -> Result<Cow<'_, [u8]>, ParseError>
Source§impl<'b> ReadBinary for WoffFont<'b>
impl<'b> ReadBinary for WoffFont<'b>
Source§impl<'a> SfntVersion for WoffFont<'a>
impl<'a> SfntVersion for WoffFont<'a>
fn sfnt_version(&self) -> u32
Auto Trait Implementations§
impl<'a> Freeze for WoffFont<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more