Enum font_kit::hinting::HintingOptions[][src]

pub enum HintingOptions {
    None,
    Vertical(f32),
    VerticalSubpixel(f32),
    Full(f32),
}
Expand description

Specifies how hinting (grid fitting) is to be performed (or not performed) for a glyph.

This affects both outlines and rasterization.

Variants

None

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.

Implementations

Returns the point size that will be used for grid fitting, if any.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.