pub struct PlatformRunGlyph {
pub glyph_id: u16,
pub font_id: FontId,
pub cluster_byte_offset: usize,
pub cluster_byte_len: usize,
pub x_advance: f32,
pub y_advance: f32,
pub x_offset: f32,
pub y_offset: f32,
}Expand description
A raw glyph produced by a platform shaper before assembly into a run.
Fields§
§glyph_id: u16Platform glyph index.
font_id: FontIdIdentifier of the specific font face (primary or fallback) that produced this glyph.
cluster_byte_offset: usizeStart offset in the original logical UTF-8 bytes.
cluster_byte_len: usizeLength in original logical UTF-8 bytes covered by this cluster.
x_advance: f32Horizontal advance in layout points.
y_advance: f32Vertical advance in layout points.
x_offset: f32Horizontal placement offset in layout points.
y_offset: f32Vertical placement offset in layout points.
Trait Implementations§
Source§impl Clone for PlatformRunGlyph
impl Clone for PlatformRunGlyph
impl Copy for PlatformRunGlyph
Source§impl Debug for PlatformRunGlyph
impl Debug for PlatformRunGlyph
Source§impl PartialEq for PlatformRunGlyph
impl PartialEq for PlatformRunGlyph
impl StructuralPartialEq for PlatformRunGlyph
Auto Trait Implementations§
impl Freeze for PlatformRunGlyph
impl RefUnwindSafe for PlatformRunGlyph
impl Send for PlatformRunGlyph
impl Sync for PlatformRunGlyph
impl Unpin for PlatformRunGlyph
impl UnsafeUnpin for PlatformRunGlyph
impl UnwindSafe for PlatformRunGlyph
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