pub(crate) enum ShaperMode {
Nominal,
BestEffort,
}
Expand description
Determines the fidelity with which we apply shaping in the autohinter.
Shaping only affects glyph style classification and the glyphs that
are chosen for metrics computations. We keep the Nominal
mode around
to enable validation of internal algorithms against a configuration that
is known to match FreeType. The BestEffort
mode should always be
used for actual rendering.
Variants§
Nominal
Characters are mapped to nominal glyph identifiers and layout tables are not used for style coverage.
This matches FreeType when HarfBuzz support is not enabled.
BestEffort
Simple substitutions are applied according to script rules and layout tables are used to extend style coverage beyond the character map.
Trait Implementations§
Source§impl Clone for ShaperMode
impl Clone for ShaperMode
Source§fn clone(&self) -> ShaperMode
fn clone(&self) -> ShaperMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ShaperMode
impl Debug for ShaperMode
Source§impl PartialEq for ShaperMode
impl PartialEq for ShaperMode
impl Copy for ShaperMode
impl Eq for ShaperMode
impl StructuralPartialEq for ShaperMode
Auto Trait Implementations§
impl Freeze for ShaperMode
impl RefUnwindSafe for ShaperMode
impl Send for ShaperMode
impl Sync for ShaperMode
impl Unpin for ShaperMode
impl UnwindSafe for ShaperMode
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