pub enum SmoothMode {
Normal,
Light,
Lcd,
VerticalLcd,
}
Expand description
Mode selector for a smooth hinting target.
Variants§
Normal
The standard smooth hinting mode.
Corresponds to FT_LOAD_TARGET_NORMAL
in FreeType.
Light
Hinting with a lighter touch, typically meaning less aggressive adjustment in the horizontal direction.
Corresponds to FT_LOAD_TARGET_LIGHT
in FreeType.
Lcd
Hinting that is optimized for subpixel rendering with horizontal LCD layouts.
Corresponds to FT_LOAD_TARGET_LCD
in FreeType.
VerticalLcd
Hinting that is optimized for subpixel rendering with vertical LCD layouts.
Corresponds to FT_LOAD_TARGET_LCD_V
in FreeType.
Trait Implementations§
source§impl Clone for SmoothMode
impl Clone for SmoothMode
source§fn clone(&self) -> SmoothMode
fn clone(&self) -> SmoothMode
Returns a copy 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 SmoothMode
impl Debug for SmoothMode
source§impl Default for SmoothMode
impl Default for SmoothMode
source§fn default() -> SmoothMode
fn default() -> SmoothMode
Returns the “default value” for a type. Read more
source§impl From<SmoothMode> for Target
impl From<SmoothMode> for Target
source§fn from(value: SmoothMode) -> Self
fn from(value: SmoothMode) -> Self
Converts to this type from the input type.
source§impl PartialEq for SmoothMode
impl PartialEq for SmoothMode
impl Copy for SmoothMode
impl Eq for SmoothMode
impl StructuralPartialEq for SmoothMode
Auto Trait Implementations§
impl Freeze for SmoothMode
impl RefUnwindSafe for SmoothMode
impl Send for SmoothMode
impl Sync for SmoothMode
impl Unpin for SmoothMode
impl UnwindSafe for SmoothMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)