pub enum TextQuality {
Grayscale,
Subpixel,
Sdf,
}Expand description
Controls the anti-aliasing strategy used for text rendering.
Variants§
Grayscale
Greyscale anti-aliasing (single-channel coverage).
Subpixel
Subpixel anti-aliasing (RGB stripe).
Sdf
Signed-distance-field glyph rendering (resolution-independent).
Trait Implementations§
Source§impl Clone for TextQuality
impl Clone for TextQuality
Source§fn clone(&self) -> TextQuality
fn clone(&self) -> TextQuality
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 moreSource§impl Debug for TextQuality
impl Debug for TextQuality
Source§impl PartialEq for TextQuality
impl PartialEq for TextQuality
Source§fn eq(&self, other: &TextQuality) -> bool
fn eq(&self, other: &TextQuality) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextQuality
Auto Trait Implementations§
impl Freeze for TextQuality
impl RefUnwindSafe for TextQuality
impl Send for TextQuality
impl Sync for TextQuality
impl Unpin for TextQuality
impl UnsafeUnpin for TextQuality
impl UnwindSafe for TextQuality
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