pub enum Engine {
Interpreter,
Auto(Option<GlyphStyles>),
AutoFallback,
}
Expand description
Specifies the backend to use when applying hints.
Variants§
Interpreter
The TrueType or PostScript interpreter.
Auto(Option<GlyphStyles>)
The automatic hinter that performs just-in-time adjustment of outlines.
Glyph styles can be precomputed per font and may be provided here as an optimization to avoid recomputing them for each instance.
AutoFallback
Selects the engine based on the same rules that FreeType uses when
neither of the FT_LOAD_NO_AUTOHINT
or FT_LOAD_FORCE_AUTOHINT
load flags are specified.
Specifically, PostScript (CFF/CFF2) fonts will always use the hinting
engine in the PostScript interpreter and TrueType fonts will use the
interpreter for TrueType instructions if one of the fpgm
or prep
tables is non-empty, falling back to the automatic hinter otherwise.
This uses OutlineGlyphCollection::prefer_interpreter
to make a
selection.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnwindSafe for Engine
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)