pub enum FontError {
UnsupportedFont,
ParseError,
MalformedFont,
}Variants§
UnsupportedFont
Not a static TrueType glyf font (ADR-012: variable fonts and
CFF/OTF are explicitly rejected in V1).
ParseError
Malformed font data that skrifa could not parse at all.
MalformedFont
Structurally inconsistent font tables discovered while subsetting
(e.g. a loca/glyf/maxp mismatch, or a mandatory table skrifa
couldn’t decode) — distinct from ParseError because the font’s
sfnt directory itself parsed fine; this is caught by lightweight-pdf’s
own table walking.
Trait Implementations§
impl Copy for FontError
impl Eq for FontError
Source§impl From<FontError> for RenderError
impl From<FontError> for RenderError
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 UnsafeUnpin 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