pub enum VariationError {
Parse(ParseError),
CFF(CFFError),
Write(WriteError),
NotVariableFont,
NotImplemented,
NameError,
TagError,
}Expand description
Error type returned from instancing a variable font.
Variants§
Parse(ParseError)
An error occurred reading or parsing data.
CFF(CFFError)
An error occurred processing CFF data.
Write(WriteError)
An error occurred serializing data.
NotVariableFont
The font is not a variable font.
NotImplemented
The font is a variable font but support for its format is not implemented.
Encountered for variable CFF fonts.
NameError
The font did not contain a name table entry for the family name in a
usable encoding.
TagError
The list of table tags was unable to be retrieved from the font.
Trait Implementations§
Source§impl Debug for VariationError
impl Debug for VariationError
Source§impl Display for VariationError
impl Display for VariationError
Source§impl Error for VariationError
impl Error for VariationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CFFError> for VariationError
impl From<CFFError> for VariationError
Source§fn from(err: CFFError) -> VariationError
fn from(err: CFFError) -> VariationError
Converts to this type from the input type.
Source§impl From<ParseError> for VariationError
impl From<ParseError> for VariationError
Source§fn from(err: ParseError) -> VariationError
fn from(err: ParseError) -> VariationError
Converts to this type from the input type.
Source§impl From<ReadWriteError> for VariationError
impl From<ReadWriteError> for VariationError
Source§fn from(err: ReadWriteError) -> VariationError
fn from(err: ReadWriteError) -> VariationError
Converts to this type from the input type.
Source§impl From<WriteError> for VariationError
impl From<WriteError> for VariationError
Source§fn from(err: WriteError) -> VariationError
fn from(err: WriteError) -> VariationError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VariationError
impl RefUnwindSafe for VariationError
impl Send for VariationError
impl Sync for VariationError
impl Unpin for VariationError
impl UnwindSafe for VariationError
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> 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