pub enum DrawError {
NoSources,
GlyphNotFound(GlyphId),
InsufficientMemory,
RecursionLimitExceeded(GlyphId),
HintingFailed(HintError),
InvalidAnchorPoint(GlyphId, u16),
PostScript(CffError),
ToPath(ToPathError),
Read(ReadError),
HarfBuzzHintingUnsupported,
}
Expand description
Errors that may occur when drawing glyphs.
Variants§
NoSources
No viable sources were available.
GlyphNotFound(GlyphId)
The requested glyph was not present in the font.
InsufficientMemory
Exceeded memory limits when loading a glyph.
RecursionLimitExceeded(GlyphId)
Exceeded a recursion limit when loading a glyph.
HintingFailed(HintError)
Error occurred during hinting.
InvalidAnchorPoint(GlyphId, u16)
An anchor point had invalid indices.
PostScript(CffError)
Error occurred while loading a PostScript (CFF/CFF2) glyph.
ToPath(ToPathError)
Conversion from outline to path failed.
Read(ReadError)
Error occurred when reading font data.
HarfBuzzHintingUnsupported
HarfBuzz style drawing with hints is not supported
Trait Implementations§
source§impl From<ToPathError> for DrawError
impl From<ToPathError> for DrawError
source§fn from(e: ToPathError) -> Self
fn from(e: ToPathError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DrawError
impl RefUnwindSafe for DrawError
impl Send for DrawError
impl Sync for DrawError
impl Unpin for DrawError
impl UnwindSafe for DrawError
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)