pub struct FvarTable<'a> { /* private fields */ }Expand description
Zero-copy view over the fvar table.
Implementations§
Source§impl<'a> FvarTable<'a>
impl<'a> FvarTable<'a>
Sourcepub fn parse(data: &'a [u8]) -> Result<Self, ParseError>
pub fn parse(data: &'a [u8]) -> Result<Self, ParseError>
Parse and validate the fvar table.
§Errors
ParseError::TruncatedTable when the header is short;
ParseError::InvalidGlyphFormat for inconsistent counts/sizes.
Sourcepub fn version(&self) -> Result<u32, ParseError>
pub fn version(&self) -> Result<u32, ParseError>
Sourcepub const fn axis_count(&self) -> u16
pub const fn axis_count(&self) -> u16
Number of design axes.
Sourcepub fn axes(&self) -> Result<Vec<VariationAxis>, ParseError>
pub fn axes(&self) -> Result<Vec<VariationAxis>, ParseError>
Sourcepub fn instances(&self) -> Result<Vec<VarInstance>, ParseError>
pub fn instances(&self) -> Result<Vec<VarInstance>, ParseError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FvarTable<'a>
impl<'a> RefUnwindSafe for FvarTable<'a>
impl<'a> Send for FvarTable<'a>
impl<'a> Sync for FvarTable<'a>
impl<'a> Unpin for FvarTable<'a>
impl<'a> UnsafeUnpin for FvarTable<'a>
impl<'a> UnwindSafe for FvarTable<'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