enum EngineChoice<'a> {
TrueType,
PostScript(&'a CffFontRef<'a>),
Auto,
None,
}Expand description
The engine chosen to hint a font.
Variants§
TrueType
The TrueType interpreter.
PostScript(&'a CffFontRef<'a>)
The PostScript hinter for these charstrings.
Auto
The automatic hinter.
None
No engine. Type 1 fonts and fonts without outlines are not hinted.
Implementations§
Source§impl<'a> EngineChoice<'a>
impl<'a> EngineChoice<'a>
Sourcefn new(
font: &'a Font,
outlines: &OutlineGlyphs<'a>,
hinting: &HintOptions,
) -> Self
fn new( font: &'a Font, outlines: &OutlineGlyphs<'a>, hinting: &HintOptions, ) -> Self
Chooses the engine that hinting requests for outlines, the
outlines of font that the scaler draws.
Requesting the interpreter runs the font’s own instructions, whichever kind it contains. Requesting the FreeType fallback runs the TrueType interpreter only when the font’s programs are worth running, and always runs a PostScript font’s own hints. A TrueType font that needs its instructions for correct contours always runs them.
Auto Trait Implementations§
impl<'a> Freeze for EngineChoice<'a>
impl<'a> RefUnwindSafe for EngineChoice<'a>
impl<'a> Send for EngineChoice<'a>
impl<'a> Sync for EngineChoice<'a>
impl<'a> Unpin for EngineChoice<'a>
impl<'a> UnsafeUnpin for EngineChoice<'a>
impl<'a> UnwindSafe for EngineChoice<'a>
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