Enum font_kit::canvas::RasterizationOptions
source · [−]pub enum RasterizationOptions {
Bilevel,
GrayscaleAa,
SubpixelAa,
}Expand description
The antialiasing strategy that should be used when rasterizing glyphs.
Variants
Bilevel
“Black-and-white” rendering. Each pixel is either entirely on or off.
GrayscaleAa
Grayscale antialiasing. Only one channel is used.
SubpixelAa
Subpixel RGB antialiasing, for LCD screens.
Trait Implementations
sourceimpl Clone for RasterizationOptions
impl Clone for RasterizationOptions
sourcefn clone(&self) -> RasterizationOptions
fn clone(&self) -> RasterizationOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RasterizationOptions
impl Debug for RasterizationOptions
impl Copy for RasterizationOptions
impl StructuralPartialEq for RasterizationOptions
Auto Trait Implementations
impl RefUnwindSafe for RasterizationOptions
impl Send for RasterizationOptions
impl Sync for RasterizationOptions
impl Unpin for RasterizationOptions
impl UnwindSafe for RasterizationOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more