pub struct RawAdvances {
pub len: usize,
pub gids: *const u32,
pub advances: *mut i32,
pub gid_stride: isize,
pub advance_stride: isize,
}Expand description
Raw C-style view over a batch of glyphs and their writable advances.
Fields§
§len: usizeNumber of batch entries.
gids: *const u32Pointer to glyphs (read-only).
advances: *mut i32Pointer to horizontal advances (writable).
See “Metrics scaling” in the FontFuncs for details on what value this method should return.
gid_stride: isizeByte stride between successive glyphs.
advance_stride: isizeByte stride between successive advances.
Trait Implementations§
Source§impl Clone for RawAdvances
impl Clone for RawAdvances
impl Copy for RawAdvances
Auto Trait Implementations§
impl !Send for RawAdvances
impl !Sync for RawAdvances
impl Freeze for RawAdvances
impl RefUnwindSafe for RawAdvances
impl Unpin for RawAdvances
impl UnsafeUnpin for RawAdvances
impl UnwindSafe for RawAdvances
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