pub struct ShapedLine { /* private fields */ }Expand description
Immutable shaped placement; rasterization and GPU ownership are separate.
Implementations§
Source§impl ShapedLine
impl ShapedLine
Sourcepub fn glyphs(&self) -> &[ShapedGlyph]
pub fn glyphs(&self) -> &[ShapedGlyph]
Shaper output order. Drawing this sequence at its offsets preserves marks.
Sourcepub const fn advance(&self) -> f32
pub const fn advance(&self) -> f32
Horizontal pen advance in logical pixels, including whitespace.
Sourcepub const fn ascent(&self) -> f32
pub const fn ascent(&self) -> f32
Signed font ascender in logical pixels; normally positive above baseline.
Sourcepub const fn descent(&self) -> f32
pub const fn descent(&self) -> f32
Signed font descender in logical pixels; normally negative below baseline.
Sourcepub const fn line_height(&self) -> f32
pub const fn line_height(&self) -> f32
Font-recommended line spacing in logical pixels, including line gap.
Sourcepub fn allocation_bytes(&self) -> usize
pub fn allocation_bytes(&self) -> usize
Library-owned glyph metadata Vec capacity in bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShapedLine
impl RefUnwindSafe for ShapedLine
impl Send for ShapedLine
impl Sync for ShapedLine
impl Unpin for ShapedLine
impl UnsafeUnpin for ShapedLine
impl UnwindSafe for ShapedLine
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