pub struct GlyphRun {
pub font: FontData,
pub font_size: f32,
pub glyphs: Vec<PositionedGlyph>,
}Expand description
A run of glyphs sharing one font and size.
Fields§
§font: FontDataThe font the glyphs come from (the fallback font when the requested one lacks a glyph).
font_size: f32The font size in pixels.
glyphs: Vec<PositionedGlyph>The glyphs, in visual order.
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