Trait rich_sdl2_rust::ttf::font::FontSetting
source · pub trait FontSetting {
// Required methods
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§
sourcefn hinting(&self) -> FontHinting
fn hinting(&self) -> FontHinting
Returns the current hinting of the font.
sourcefn set_hinting(&self, hinting: FontHinting)
fn set_hinting(&self, hinting: FontHinting)
Sets the hinting of the font.
sourcefn disable_kerning(&self) -> KerningDisabler<'_>
fn disable_kerning(&self) -> KerningDisabler<'_>
Disables the font kerning.