pub enum HintEngine {
TrueType,
PostScript,
Auto,
}Expand description
The hinting engine a scaler runs.
HintOptions asks for an engine, and the font decides which one runs:
HintOptions::auto_fallback runs the font’s own hints where they are
worth running and the automatic hinter otherwise, and a font that needs
its instructions for correct contours always runs them.
Variants§
TrueType
The font’s TrueType instructions.
PostScript
The font’s PostScript hints.
Auto
The automatic hinter.
Trait Implementations§
Source§impl Clone for HintEngine
impl Clone for HintEngine
Source§fn clone(&self) -> HintEngine
fn clone(&self) -> HintEngine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HintEngine
Source§impl Debug for HintEngine
impl Debug for HintEngine
impl Eq for HintEngine
Source§impl Hash for HintEngine
impl Hash for HintEngine
Source§impl PartialEq for HintEngine
impl PartialEq for HintEngine
impl StructuralPartialEq for HintEngine
Auto Trait Implementations§
impl Freeze for HintEngine
impl RefUnwindSafe for HintEngine
impl Send for HintEngine
impl Sync for HintEngine
impl Unpin for HintEngine
impl UnsafeUnpin for HintEngine
impl UnwindSafe for HintEngine
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