pub enum FontSynthesis {
None,
All,
Weight,
Style,
}Expand description
Which missing styles the renderer may fake when the chosen font lacks them.
Compose’s FontSynthesis.
Variants§
None
Nothing is synthesized.
All
Both bold and italic may be synthesized.
Weight
Only bold may be synthesized.
Style
Only italic may be synthesized.
Trait Implementations§
Source§impl Clone for FontSynthesis
impl Clone for FontSynthesis
Source§fn clone(&self) -> FontSynthesis
fn clone(&self) -> FontSynthesis
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FontSynthesis
Source§impl Debug for FontSynthesis
impl Debug for FontSynthesis
Source§impl Default for FontSynthesis
impl Default for FontSynthesis
Source§fn default() -> FontSynthesis
fn default() -> FontSynthesis
Returns the “default value” for a type. Read more
impl Eq for FontSynthesis
Source§impl Hash for FontSynthesis
impl Hash for FontSynthesis
Source§impl PartialEq for FontSynthesis
impl PartialEq for FontSynthesis
impl StructuralPartialEq for FontSynthesis
Auto Trait Implementations§
impl Forget for FontSynthesis
impl Freeze for FontSynthesis
impl Move for FontSynthesis
impl RefUnwindSafe for FontSynthesis
impl Send for FontSynthesis
impl Sync for FontSynthesis
impl Unpin for FontSynthesis
impl UnsafeUnpin for FontSynthesis
impl UnwindSafe for FontSynthesis
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more