pub enum FontError {
InvalidFont,
TableNotFound,
GlyphNotFound,
UnsupportedFormat,
DataTruncated,
BufferTooSmall,
}Expand description
Errors during font parsing or rendering.
Variants§
InvalidFont
Invalid or unrecognized font data.
TableNotFound
Required table not found.
GlyphNotFound
Glyph index out of range.
UnsupportedFormat
Unsupported format version.
DataTruncated
Data truncated or corrupt.
BufferTooSmall
Buffer too small for rendered glyph.
Trait Implementations§
impl Copy for FontError
impl Eq for FontError
impl StructuralPartialEq for FontError
Auto Trait Implementations§
impl Freeze for FontError
impl RefUnwindSafe for FontError
impl Send for FontError
impl Sync for FontError
impl Unpin for FontError
impl UnwindSafe for FontError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)