pub struct TextOutline {
pub color: [u8; 4],
pub width: f32,
}Expand description
A band of width pixels around every glyph, behind it, in a straight
(not premultiplied), sRGB-encoded RGBA color.
The band is the glyph coverage dilated by a disc: each pixel takes the
highest coverage within width of it, weighted down over the disc’s last
pixel so the band’s edge is antialiased.
Fields§
§color: [u8; 4]Straight, sRGB-encoded RGBA.
width: f32Radius of the band in pixels, in (0, 64].
Trait Implementations§
Source§impl Clone for TextOutline
impl Clone for TextOutline
impl Copy for TextOutline
Source§impl Debug for TextOutline
impl Debug for TextOutline
Source§impl PartialEq for TextOutline
impl PartialEq for TextOutline
impl StructuralPartialEq for TextOutline
Auto Trait Implementations§
impl Freeze for TextOutline
impl RefUnwindSafe for TextOutline
impl Send for TextOutline
impl Sync for TextOutline
impl Unpin for TextOutline
impl UnsafeUnpin for TextOutline
impl UnwindSafe for TextOutline
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