enum State {
Unhinted,
Failed(Box<ScaleError>),
TrueType(Box<TrueTypeHinter>),
PostScript(PostScriptHinter),
Auto(Instance),
}Expand description
The hinting engine configured for the font and size.
Variants§
Unhinted
No hinting. Hinting was not requested, there is no size, or the font has no hints.
Failed(Box<ScaleError>)
The setup programs failed, so every draw fails too. Boxed because it is rare and would otherwise double the size of every state.
TrueType(Box<TrueTypeHinter>)
PostScript(PostScriptHinter)
Auto(Instance)
Auto Trait Implementations§
impl !RefUnwindSafe for State
impl !UnwindSafe for State
impl Freeze for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
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