pub struct GlyphRun {Show 14 fields
pub face: Arc<FontFace>,
pub size: f64,
pub color: Rgba,
pub glyphs: Vec<(u32, f64, f64)>,
pub cells: Vec<(usize, char)>,
pub fake_bold: bool,
pub fake_italic: bool,
pub outline: Option<(Rgba, f64)>,
pub para: usize,
pub chars: (usize, usize),
pub link: bool,
pub alpha: f64,
pub gradient: Option<Gradient>,
pub effects: Option<RunEffects>,
}Expand description
A run of glyphs in one face, size and colour.
Fields§
§face: Arc<FontFace>§size: f64Font size in points (after autofit scaling).
color: Rgba§glyphs: Vec<(u32, f64, f64)>Glyph id and pen position of its origin (baseline), in shape-local points.
cells: Vec<(usize, char)>Per glyph: the paragraph character it draws (index, char); empty for bullets.
fake_bold: boolDraw a heavier stroke because the family has no bold face.
fake_italic: boolSlant because the family has no italic face.
outline: Option<(Rgba, f64)>§para: usizeParagraph and character range this run covers (for hyperlinks, selection colours).
chars: (usize, usize)§link: bool§alpha: f64Alpha of the fill (0–1).
gradient: Option<Gradient>§effects: Option<RunEffects>Shadow and glow behind the glyphs (a:rPr/a:effectLst).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlyphRun
impl RefUnwindSafe for GlyphRun
impl Send for GlyphRun
impl Sync for GlyphRun
impl Unpin for GlyphRun
impl UnsafeUnpin for GlyphRun
impl UnwindSafe 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