pub struct GlyphStroke {
pub width: f32,
pub cap: Cap,
pub join: Join,
pub miter_limit: f32,
}Expand description
The stroke a glyph raster can carry: valo_geometry::Stroke without
its dashes, which a fixed-size atlas key has nowhere to put. Impeller’s
StrokeParameters carries the same four fields for the same reason.
width is in the raster’s own pixels, like px.
Fields§
§width: f32§cap: Cap§join: Join§miter_limit: f32Miter length ÷ half-width beyond which a join bevels (SVG default 4).
Trait Implementations§
Source§impl Clone for GlyphStroke
impl Clone for GlyphStroke
Source§fn clone(&self) -> GlyphStroke
fn clone(&self) -> GlyphStroke
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 GlyphStroke
Source§impl Debug for GlyphStroke
impl Debug for GlyphStroke
Source§impl PartialEq for GlyphStroke
impl PartialEq for GlyphStroke
impl StructuralPartialEq for GlyphStroke
Auto Trait Implementations§
impl Freeze for GlyphStroke
impl RefUnwindSafe for GlyphStroke
impl Send for GlyphStroke
impl Sync for GlyphStroke
impl Unpin for GlyphStroke
impl UnsafeUnpin for GlyphStroke
impl UnwindSafe for GlyphStroke
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