pub struct GlyphBitmap {
pub key: u64,
pub width: u32,
pub height: u32,
pub rgba: Vec<u16>,
pub place: [f64; 4],
}Expand description
A color glyph’s bitmap (an sbix or CBDT strike): linear premultiplied RGBA as half floats, row-major from the top.
Fields§
§key: u64Identifies the bitmap (face, glyph, strike) for GPU caches.
width: u32§height: u32§rgba: Vec<u16>§place: [f64; 4]Where it sits in font units: left, bottom, width, height (y up).
Trait Implementations§
Auto Trait Implementations§
impl Forget for GlyphBitmap
impl Freeze for GlyphBitmap
impl Move for GlyphBitmap
impl RefUnwindSafe for GlyphBitmap
impl Send for GlyphBitmap
impl Sync for GlyphBitmap
impl Unpin for GlyphBitmap
impl UnsafeUnpin for GlyphBitmap
impl UnwindSafe for GlyphBitmap
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