pub enum SubsetError {
Parse(ParseError),
Write(WriteError),
CFF(CFFError),
NotDef,
TooManyGlyphs,
InvalidFontCount,
}Expand description
Error type returned from subsetting.
Variants§
Parse(ParseError)
An error occurred reading or parsing data.
Write(WriteError)
An error occurred serializing data.
CFF(CFFError)
An error occurred when interpreting CFF CharStrings
NotDef
The glyph subset did not include glyph 0/.notdef in the first position
TooManyGlyphs
The subset glyph count exceeded the maximum number of glyphs
InvalidFontCount
The CFF font did not contain a sole font, which is the only supported configuration for subsetting
Trait Implementations§
Source§impl Debug for SubsetError
impl Debug for SubsetError
Source§impl Display for SubsetError
impl Display for SubsetError
Source§impl Error for SubsetError
impl Error for SubsetError
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 SubsetError
impl From<CFFError> for SubsetError
Source§fn from(err: CFFError) -> SubsetError
fn from(err: CFFError) -> SubsetError
Converts to this type from the input type.
Source§impl From<ParseError> for SubsetError
impl From<ParseError> for SubsetError
Source§fn from(err: ParseError) -> SubsetError
fn from(err: ParseError) -> SubsetError
Converts to this type from the input type.
Source§impl From<ReadWriteError> for SubsetError
impl From<ReadWriteError> for SubsetError
Source§fn from(err: ReadWriteError) -> SubsetError
fn from(err: ReadWriteError) -> SubsetError
Converts to this type from the input type.
Source§impl From<WriteError> for SubsetError
impl From<WriteError> for SubsetError
Source§fn from(err: WriteError) -> SubsetError
fn from(err: WriteError) -> SubsetError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SubsetError
impl RefUnwindSafe for SubsetError
impl Send for SubsetError
impl Sync for SubsetError
impl Unpin for SubsetError
impl UnwindSafe for SubsetError
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