[−][src]Enum ttf_parser::Error
A font parsing error.
Variants
Not a TrueType data.
The font index is out of bounds.
TableMissing(TableName)
One of the required tables is missing.
InvalidTableSize(TableName)
Table has an invalid size.
Font doesn't have such glyph ID.
Glyph doesn't have an outline.
InvalidGlyphClass(u16)
An invalid glyph class.
No horizontal metrics for this glyph.
No vertical metrics for this glyph.
No kerning for this glyph.
An unsupported table version.
CFFError(CFFError)
A CFF table parsing error.
An attempt to slice a raw data out of bounds.
This may be caused by a bug in the library or by a malformed font.
Trait Implementations
impl From<CFFError> for Error
[src]
impl Debug for Error
[src]
impl Display for Error
[src]
impl Copy for Error
[src]
impl Clone for Error
[src]
impl Error for Error
[src]
Auto Trait Implementations
impl Unpin for Error
impl Send for Error
impl Sync for Error
impl UnwindSafe for Error
impl RefUnwindSafe for Error
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,