#[repr(C)]pub struct BitmapGlyph {
pub x: i16,
pub y: i16,
pub width: i16,
pub height: i16,
pub x_advance: i16,
pub data: Slice<'static, u8>,
}
Expand description
A pre-rendered glyph with the alpha map and associated metrics
Fields§
§x: i16
The starting x-coordinate for the glyph, relative to the base line This is a fixed point number that is shifted by 6 bits
y: i16
The starting y-coordinate for the glyph, relative to the base line This is a fixed point number that is shifted by 6 bits
width: i16
The width of the glyph in pixels
height: i16
The height of the glyph in pixels
x_advance: i16
The horizontal distance to the next glyph This is a fixed point number that is shifted by 6 bits
data: Slice<'static, u8>
The 8-bit alpha map that’s to be blended with the current text color
or 8-bit signed distance field depending on BitmapFont::sdf
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BitmapGlyph
impl RefUnwindSafe for BitmapGlyph
impl Send for BitmapGlyph
impl Sync for BitmapGlyph
impl Unpin for BitmapGlyph
impl UnwindSafe for BitmapGlyph
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