pub enum MorphError {
EmptyWord,
MissingCmap,
MissingGlyph(char),
GlyphIdOutOfRange(u32),
Read(ReadError),
Builder(BuilderError),
Write(Error),
UnsupportedPlaceholderGlyph,
}Expand description
Errors that can occur during morphing.
Variants§
EmptyWord
The input word is empty.
MissingCmap
The font does not have a usable Unicode cmap.
MissingGlyph(char)
The font is missing a glyph for a character in one of the words.
GlyphIdOutOfRange(u32)
Out of range trying to represent glyph ID as u16.
Read(ReadError)
An error occurred while reading the font.
Builder(BuilderError)
An error occurred while building the font.
Write(Error)
An error occurred while writing a table.
UnsupportedPlaceholderGlyph
The font could not accept a placeholder glyph.
Trait Implementations§
Source§impl Clone for MorphError
impl Clone for MorphError
Source§fn clone(&self) -> MorphError
fn clone(&self) -> MorphError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MorphError
impl Debug for MorphError
Source§impl Display for MorphError
impl Display for MorphError
Source§impl Error for MorphError
impl Error for MorphError
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<BuilderError> for MorphError
impl From<BuilderError> for MorphError
Source§fn from(err: BuilderError) -> Self
fn from(err: BuilderError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for MorphError
impl From<Error> for MorphError
Source§fn from(err: WriteError) -> Self
fn from(err: WriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MorphError
impl RefUnwindSafe for MorphError
impl Send for MorphError
impl Sync for MorphError
impl Unpin for MorphError
impl UnsafeUnpin for MorphError
impl UnwindSafe for MorphError
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 moreSource§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.