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§

source

fn hinting(&self) -> FontHinting

Returns the current hinting of the font.

source

fn set_hinting(&self, hinting: FontHinting)

Sets the hinting of the font.

source

fn disable_kerning(&self) -> KerningDisabler<'_>

Disables the font kerning.

source

fn is_sdf(&self) -> bool

Returns whether the font supports Singed Distance Field.

source

fn set_sdf(&self, value: bool) -> Result<()>

Sets whether the font supports Singed Distance Field.

Implementors§