pub enum FontError {
UnsupportedFormat,
OffsetBeyondEof,
OffsetPlusLengthBeyondEof,
MissingTable,
NoSupportedPostscriptName,
NoSupportedCmap,
NoHorizontalGlyphMetrics,
}
Variants§
UnsupportedFormat
Victor only supports TrueType fonts at the moment.
OffsetBeyondEof
The font file contains an offset to beyond the end of the file.
OffsetPlusLengthBeyondEof
The font file contains an offset that puts the end of the pointed object beyond the end of the file.
MissingTable
One of the required TrueType tables is missing in this font.
NoSupportedPostscriptName
This font doesn’t have a “PostScript name” string in a supported encoding.
NoSupportedCmap
This font doesn’t have a character map in a supported format.
NoHorizontalGlyphMetrics
This font doesn’t have any horizontal metrics for glyphs.
Trait Implementations§
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§
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> 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 more