pub type GlyphOptions = FontOptions;
Expand description
Extra font options send with text glyphs.
Aliased Type§
struct GlyphOptions {
pub aa: FontAntiAliasing,
pub synthetic_bold: bool,
pub synthetic_oblique: bool,
}
Fields§
§aa: FontAntiAliasing
Font render mode.
Default value must be already resolved here, it falls back to Subpixel.
synthetic_bold: bool
If synthetic bold is enabled.
synthetic_oblique: bool
If synthetic skew is enabled.
Trait Implementations
Source§impl Clone for FontOptions
impl Clone for FontOptions
Source§fn clone(&self) -> FontOptions
fn clone(&self) -> FontOptions
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 FontOptions
impl Debug for FontOptions
Source§impl Default for FontOptions
impl Default for FontOptions
Source§fn default() -> FontOptions
fn default() -> FontOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FontOptions
impl<'de> Deserialize<'de> for FontOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more