#[repr(C)]pub struct FontInstanceOptions {
pub render_mode: FontRenderMode,
pub flags: FontInstanceFlags,
pub bg_color: ColorU,
pub synthetic_italics: SyntheticItalics,
}
Fields§
§render_mode: FontRenderMode
§flags: FontInstanceFlags
§bg_color: ColorU
When bg_color.a is != 0 and render_mode is FontRenderMode::Subpixel, the text will be rendered with bg_color.r/g/b as an opaque estimated background color.
synthetic_italics: SyntheticItalics
Trait Implementations§
Source§impl Clone for FontInstanceOptions
impl Clone for FontInstanceOptions
Source§fn clone(&self) -> FontInstanceOptions
fn clone(&self) -> FontInstanceOptions
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 FontInstanceOptions
impl Debug for FontInstanceOptions
Source§impl Default for FontInstanceOptions
impl Default for FontInstanceOptions
Source§fn default() -> FontInstanceOptions
fn default() -> FontInstanceOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FontInstanceOptions
impl<'de> Deserialize<'de> for FontInstanceOptions
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
Source§impl Hash for FontInstanceOptions
impl Hash for FontInstanceOptions
Source§impl Ord for FontInstanceOptions
impl Ord for FontInstanceOptions
Source§fn cmp(&self, other: &FontInstanceOptions) -> Ordering
fn cmp(&self, other: &FontInstanceOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FontInstanceOptions
impl PartialEq for FontInstanceOptions
Source§impl PartialOrd for FontInstanceOptions
impl PartialOrd for FontInstanceOptions
Source§impl Serialize for FontInstanceOptions
impl Serialize for FontInstanceOptions
impl Copy for FontInstanceOptions
impl Eq for FontInstanceOptions
impl StructuralPartialEq for FontInstanceOptions
Auto Trait Implementations§
impl Freeze for FontInstanceOptions
impl RefUnwindSafe for FontInstanceOptions
impl Send for FontInstanceOptions
impl Sync for FontInstanceOptions
impl Unpin for FontInstanceOptions
impl UnwindSafe for FontInstanceOptions
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