pub struct GlyphRun {
pub font: FontHandle,
pub font_size: f32,
pub brush: Brush,
pub transform: Affine,
pub glyphs: Vec<Glyph>,
}Expand description
A run of glyphs sharing a font, size, brush, and transform.
Fields§
§font: FontHandleFont this run’s glyph IDs are resolved against.
font_size: f32Font size, in pixels.
brush: BrushPaint used to fill the glyphs.
transform: AffineTransform applied to the whole run.
glyphs: Vec<Glyph>The positioned glyphs.
Trait Implementations§
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