[−][src]Enum font_kit::hinting::HintingOptions
Specifies how hinting (grid fitting) is to be performed (or not performed) for a glyph.
This affects both outlines and rasterization.
Variants
No hinting is performed unless absolutely necessary to assemble the glyph.
This corresponds to what macOS and FreeType in its "no hinting" mode do.
Vertical(f32)
Hinting is performed only in the vertical direction. The specified point size is used for grid fitting.
This corresponds to what DirectWrite and FreeType in its light hinting mode do.
VerticalSubpixel(f32)
Hinting is performed only in the vertical direction, and further tweaks are applied to make subpixel antialiasing look better. The specified point size is used for grid fitting.
This matches DirectWrite, GDI in its ClearType mode, and FreeType in its LCD hinting mode.
Full(f32)
Hinting is performed in both horizontal and vertical directions. The specified point size is used for grid fitting.
This corresponds to what GDI in non-ClearType modes and FreeType in its normal hinting mode do.
Methods
impl HintingOptions
[src]
pub fn grid_fitting_size(&self) -> Option<f32>
[src]
Returns the point size that will be used for grid fitting, if any.
Trait Implementations
impl Clone for HintingOptions
[src]
fn clone(&self) -> HintingOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for HintingOptions
[src]
impl PartialEq<HintingOptions> for HintingOptions
[src]
fn eq(&self, other: &HintingOptions) -> bool
[src]
fn ne(&self, other: &HintingOptions) -> bool
[src]
impl Debug for HintingOptions
[src]
impl StructuralPartialEq for HintingOptions
[src]
Auto Trait Implementations
impl Send for HintingOptions
impl Sync for HintingOptions
impl Unpin for HintingOptions
impl UnwindSafe for HintingOptions
impl RefUnwindSafe for HintingOptions
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,