pub struct Span {
pub fill: Option<Fill>,
pub stroke: Option<Stroke>,
pub paint_order: PaintOrder,
pub font_size: NonZeroPositiveF32,
pub visible: bool,
pub positioned_glyphs: Vec<PositionedGlyph>,
pub underline: Option<Path>,
pub overline: Option<Path>,
pub line_through: Option<Path>,
}
Expand description
A span contains a number of layouted glyphs that share the same fill, stroke, paint order and visibility.
Fields§
§fill: Option<Fill>
The fill of the span.
stroke: Option<Stroke>
The stroke of the span.
paint_order: PaintOrder
The paint order of the span.
font_size: NonZeroPositiveF32
The font size of the span.
visible: bool
The visibility of the span.
positioned_glyphs: Vec<PositionedGlyph>
The glyphs that make up the span.
underline: Option<Path>
An underline text decoration of the span. Needs to be rendered before all glyphs.
overline: Option<Path>
An overline text decoration of the span. Needs to be rendered before all glyphs.
line_through: Option<Path>
A line-through text decoration of the span. Needs to be rendered after all glyphs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Span
impl !RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl !UnwindSafe for Span
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)