[][src]Enum ttf_parser::FaceParsingError

pub enum FaceParsingError {
    MalformedFont,
    UnknownMagic,
    FaceIndexOutOfBounds,
    NoHeadTable,
    NoHheaTable,
    NoMaxpTable,
}

A list of font face parsing errors.

Variants

MalformedFont

An attempt to read out of bounds detected.

Should occur only on malformed fonts.

UnknownMagic

Face data must start with 0x00010000, 0x74727565, 0x4F54544F or 0x74746366.

FaceIndexOutOfBounds

The face index is larger than the number of faces in the font.

NoHeadTable

The head table is missing or malformed.

NoHheaTable

The hhea table is missing or malformed.

NoMaxpTable

The maxp table is missing or malformed.

Trait Implementations

impl Clone for FaceParsingError[src]

impl Copy for FaceParsingError[src]

impl Debug for FaceParsingError[src]

impl Display for FaceParsingError[src]

impl Error for FaceParsingError[src]

impl PartialEq<FaceParsingError> for FaceParsingError[src]

impl StructuralPartialEq for FaceParsingError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.