pub struct GlyphRun {
pub font: FontRef,
pub direction: Direction,
pub script: Option<Tag>,
pub language: Option<String>,
pub glyphs: Vec<PositionedGlyph>,
}Expand description
A shaped sequence of glyphs from one font.
Fields§
§font: FontRefFont identity and size for all glyphs in this run.
direction: DirectionText direction for rendering.
script: Option<Tag>Optional script tag, such as Latn or Arab.
language: Option<String>Optional language tag following language tag conventions.
glyphs: Vec<PositionedGlyph>Positioned glyphs in visual order.
Trait Implementations§
impl StructuralPartialEq for GlyphRun
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