Enum font_kit::hinting::HintingOptions [−][src]
Specifies how hinting (grid fitting) is to be performed (or not performed) for a glyph.
This affects both outlines and rasterization.
Variants
NoneNo 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]
impl HintingOptionspub fn grid_fitting_size(&self) -> Option<f32>[src]
pub fn grid_fitting_size(&self) -> Option<f32>Returns the point size that will be used for grid fitting, if any.
Trait Implementations
impl Clone for HintingOptions[src]
impl Clone for HintingOptionsfn clone(&self) -> HintingOptions[src]
fn clone(&self) -> HintingOptionsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for HintingOptions[src]
impl Copy for HintingOptionsimpl Debug for HintingOptions[src]
impl Debug for HintingOptionsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for HintingOptions[src]
impl PartialEq for HintingOptionsfn eq(&self, other: &HintingOptions) -> bool[src]
fn eq(&self, other: &HintingOptions) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &HintingOptions) -> bool[src]
fn ne(&self, other: &HintingOptions) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for HintingOptions
impl Send for HintingOptionsimpl Sync for HintingOptions
impl Sync for HintingOptions