pub enum TextAa {
Grayscale,
None,
LcdSubpixel,
}Expand description
How glyphs are antialiased.
TextAa::Grayscale is the oracle’s own choice on an ordinary page: the
three subpixel coverages are averaged back to grey. TextAa::LcdSubpixel
is reachable, but only per-draw — see its own note.
Variants§
Grayscale
Grayscale coverage — the oracle’s conformance setting.
None
Hard-edged glyph fills.
LcdSubpixel
ClearType: each pixel’s three LCD stripes keep their own coverage and
merge into their own destination channel, so a glyph drawn in one colour
carries colour fringes.
It is not something only a caller asks for: a live edit’s text —
and only that text — is drawn with ClearType on while the rest of
the page is not, which is why this is a per-draw selection rather
than a whole-render one. See RenderOptions::text_aa_override.
Trait Implementations§
impl Copy for TextAa
impl Eq for TextAa
impl StructuralPartialEq for TextAa
Auto Trait Implementations§
impl Freeze for TextAa
impl RefUnwindSafe for TextAa
impl Send for TextAa
impl Sync for TextAa
impl Unpin for TextAa
impl UnsafeUnpin for TextAa
impl UnwindSafe for TextAa
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