pub struct GlyphAtlasEntry {
pub key: GlyphKey,
pub origin: [u16; 2],
pub size: [u16; 2],
pub advance_x: f32,
pub bearing_x: i16,
pub bearing_y: i16,
}Expand description
Glyph atlas entry metadata.
Fields§
§key: GlyphKeyRequested glyph key.
origin: [u16; 2]Atlas origin in pixels.
size: [u16; 2]Raster width/height in pixels.
advance_x: f32Horizontal advance in pixels.
bearing_x: i16Left-side bearing in pixels.
bearing_y: i16Top bearing in pixels.
Trait Implementations§
Source§impl Clone for GlyphAtlasEntry
impl Clone for GlyphAtlasEntry
Source§fn clone(&self) -> GlyphAtlasEntry
fn clone(&self) -> GlyphAtlasEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlyphAtlasEntry
impl Debug for GlyphAtlasEntry
Source§impl PartialEq for GlyphAtlasEntry
impl PartialEq for GlyphAtlasEntry
impl StructuralPartialEq for GlyphAtlasEntry
Auto Trait Implementations§
impl Freeze for GlyphAtlasEntry
impl RefUnwindSafe for GlyphAtlasEntry
impl Send for GlyphAtlasEntry
impl Sync for GlyphAtlasEntry
impl Unpin for GlyphAtlasEntry
impl UnsafeUnpin for GlyphAtlasEntry
impl UnwindSafe for GlyphAtlasEntry
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