pub struct GlyphRun {
pub font: FontRef,
pub size: f32,
pub color: Color,
pub glyphs: Vec<PositionedGlyph>,
}Expand description
Shaped glyphs sharing one font, size and color.
Fields§
§font: FontRefFont the glyphs come from.
size: f32Font size in logical pixels.
color: ColorText color.
glyphs: Vec<PositionedGlyph>Glyphs in drawing order.
Trait Implementations§
impl StructuralPartialEq for GlyphRun
Auto Trait Implementations§
impl !RefUnwindSafe for GlyphRun
impl !UnwindSafe for GlyphRun
impl Freeze for GlyphRun
impl Send for GlyphRun
impl Sync for GlyphRun
impl Unpin for GlyphRun
impl UnsafeUnpin for GlyphRun
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