Struct allsorts_no_std::woff2::Woff2Font [−][src]
Fields
scope: ReadScope<'a>
woff_header: Woff2Header
table_directory: Vec<TableDirectoryEntry>
collection_directory: Option<Directory>
table_data_block: Vec<u8>
Implementations
impl<'a> Woff2Font<'a>
[src]
pub fn flavor(&self) -> u32
[src]
The “sfnt version” of the input font
pub fn extended_metadata(&self) -> Result<Option<String>, ParseError>
[src]
Decompress and return the extended metadata XML if present
pub fn table_data_block_scope(&'a self) -> ReadScope<'a>
[src]
pub fn find_table_entry(
&self,
tag: u32,
index: usize
) -> Option<&TableDirectoryEntry>
[src]
&self,
tag: u32,
index: usize
) -> Option<&TableDirectoryEntry>
pub fn read_table(
&self,
tag: u32,
index: usize
) -> Result<Option<ReadBuf<'_>>, ParseError>
[src]
&self,
tag: u32,
index: usize
) -> Result<Option<ReadBuf<'_>>, ParseError>
pub fn table_provider(
&self,
index: usize
) -> Result<Woff2TableProvider, ReadWriteError>
[src]
&self,
index: usize
) -> Result<Woff2TableProvider, ReadWriteError>
Trait Implementations
impl<'a> ReadBinary<'a> for Woff2Font<'a>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
[src]
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
pub fn read_dep(
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
[src]
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,