Enum FontHintingPreference
#[repr(i32)]pub enum FontHintingPreference {
NoHinting = 0,
NativeHinting = 1,
AutoHinting = 2,
}Expand description
Font hinting options. Hinting refers to the adjustments in the outline-filling process of a glyph, so that the glyph lines up within the rasterized grid.
§Since
Kanzi 3.9.0
Variants§
NoHinting = 0
Render text without hinting the outlines of glyphs.
NativeHinting = 1
Enable hinting. Prefer native hinter of the font over the auto-hinter of the rasterizer.
AutoHinting = 2
Enable hinting. Prefer auto-hinter of the rasterizer over the native hinter of the font.
Implementations§
§impl FontHintingPreference
impl FontHintingPreference
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> FontHintingPreference
Trait Implementations§
§impl Clone for FontHintingPreference
impl Clone for FontHintingPreference
§fn clone(&self) -> FontHintingPreference
fn clone(&self) -> FontHintingPreference
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 more§impl Debug for FontHintingPreference
impl Debug for FontHintingPreference
§impl Display for FontHintingPreference
impl Display for FontHintingPreference
§impl PartialEq for FontHintingPreference
impl PartialEq for FontHintingPreference
§impl VariantConstraint for FontHintingPreference
impl VariantConstraint for FontHintingPreference
§type DataArg<'a> = FontHintingPreference
type DataArg<'a> = FontHintingPreference
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = FontHintingPreference
type RetArg = FontHintingPreference
§fn as_arg(&self) -> <FontHintingPreference as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <FontHintingPreference as VariantConstraint>::DataArg<'_>
impl Copy for FontHintingPreference
impl Eq for FontHintingPreference
impl PropertyTypeConstraint for FontHintingPreference
impl StructuralPartialEq for FontHintingPreference
Auto Trait Implementations§
impl Freeze for FontHintingPreference
impl RefUnwindSafe for FontHintingPreference
impl Send for FontHintingPreference
impl Sync for FontHintingPreference
impl Unpin for FontHintingPreference
impl UnwindSafe for FontHintingPreference
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