struct GlyphSlot {
uv_min: [f32; 2],
uv_max: [f32; 2],
px_w: u32,
px_h: u32,
bearing_x: f32,
bearing_y: f32,
advance: f32,
}Expand description
One rasterised glyph’s slot in the atlas.
Fields§
§uv_min: [f32; 2]Atlas UV bounds.
uv_max: [f32; 2]§px_w: u32Rasterised pixel dimensions inside the atlas.
px_h: u32§bearing_x: f32Pixel offsets from the glyph’s pen origin to the top-left
corner of the rasterised cell. Equivalent to FreeType’s
(bearing_x, -bearing_y). Used at layout time to position the
quad against the line’s baseline.
bearing_y: f32§advance: f32Horizontal advance for the next glyph on the same line, in px.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlyphSlot
impl RefUnwindSafe for GlyphSlot
impl Send for GlyphSlot
impl Sync for GlyphSlot
impl Unpin for GlyphSlot
impl UnwindSafe for GlyphSlot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more