pub enum CFFError {
Show 18 variants
ParseError(ParseError),
InvalidOperator,
InvalidOperand,
UnsupportedOperator,
MissingEndChar,
DataAfterEndChar,
NestingLimitReached,
ArgumentsStackLimitReached,
InvalidArgumentsStackLength,
BboxOverflow,
MissingMoveTo,
DuplicateVsIndex,
InvalidSubroutineIndex,
InvalidFontIndex,
NoLocalSubroutines,
InvalidSeacCode,
VsIndexAfterBlend,
MissingVariationStore,
}Expand description
A list of errors that can occur when interpreting CFF CharStrings.
Variants§
ParseError(ParseError)
InvalidOperator
InvalidOperand
UnsupportedOperator
MissingEndChar
DataAfterEndChar
NestingLimitReached
ArgumentsStackLimitReached
InvalidArgumentsStackLength
BboxOverflow
MissingMoveTo
DuplicateVsIndex
InvalidSubroutineIndex
InvalidFontIndex
NoLocalSubroutines
InvalidSeacCode
VsIndexAfterBlend
MissingVariationStore
Trait Implementations§
Source§impl CharStringVisitor<f32, CFFError> for DebugVisitor
impl CharStringVisitor<f32, CFFError> for DebugVisitor
Source§fn visit(
&mut self,
op: VisitOp,
stack: &ArgumentsStack<'_, f32>,
) -> Result<(), CFFError>
fn visit( &mut self, op: VisitOp, stack: &ArgumentsStack<'_, f32>, ) -> Result<(), CFFError>
Called for each operator in the CharString, except for
callsubr and callgsubr
— these are handled by enter/exit_subr.Source§fn enter_subr(&mut self, index: SubroutineIndex) -> Result<(), CFFError>
fn enter_subr(&mut self, index: SubroutineIndex) -> Result<(), CFFError>
Called prior to entering a subroutine. Read more
Source§fn enter_seac(&mut self, _seac: SeacChar, _dx: T, _dy: T) -> Result<(), E>
fn enter_seac(&mut self, _seac: SeacChar, _dx: T, _dy: T) -> Result<(), E>
Called before entering a component of an accented character. Read more
Source§impl Error for CFFError
impl Error for CFFError
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<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 CFFError
impl From<ParseError> for CFFError
Source§fn from(error: ParseError) -> CFFError
fn from(error: ParseError) -> CFFError
Converts to this type from the input type.
impl Eq for CFFError
impl StructuralPartialEq for CFFError
Auto Trait Implementations§
impl Freeze for CFFError
impl RefUnwindSafe for CFFError
impl Send for CFFError
impl Sync for CFFError
impl Unpin for CFFError
impl UnwindSafe for CFFError
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