Trait rich_sdl2_ttf_rust::font::FontSetting [−][src]
pub trait FontSetting { fn hinting(&self) -> FontHinting; fn set_hinting(&self, hinting: FontHinting); fn disable_kerning(&self) -> KerningDisabler<'_>; fn is_sdf(&self) -> bool; fn set_sdf(&self, value: bool) -> Result<()>; }
Expand description
An extension for settings of the font.
Required methods
fn hinting(&self) -> FontHinting
fn hinting(&self) -> FontHinting
Returns the current hinting of the font.
fn set_hinting(&self, hinting: FontHinting)
fn set_hinting(&self, hinting: FontHinting)
Sets the hinting of the font.
fn disable_kerning(&self) -> KerningDisabler<'_>
fn disable_kerning(&self) -> KerningDisabler<'_>
Disables the font kerning.