pub struct GlyphEntry {
pub u: f32,
pub v: f32,
pub width: f32,
pub height: f32,
pub bearing_x: f32,
pub bearing_y: f32,
pub advance: f32,
}Expand description
A glyph rendered into the atlas.
Fields§
§u: f32The horizontal texture coordinate of the glyph’s left edge, from
0.0 to 1.0.
v: f32The vertical texture coordinate of the glyph’s top edge, from 0.0
to 1.0.
width: f32The width of the glyph’s bitmap, in atlas pixels.
height: f32The height of the glyph’s bitmap, in atlas pixels.
bearing_x: f32The horizontal distance from the pen position to the left edge of the glyph’s bitmap, in pixels.
bearing_y: f32The vertical distance from the baseline down to the top edge of the glyph’s bitmap, in pixels.
advance: f32The advance width of the glyph, in pixels.
Trait Implementations§
Source§impl Clone for GlyphEntry
impl Clone for GlyphEntry
impl Copy for GlyphEntry
Source§impl Debug for GlyphEntry
impl Debug for GlyphEntry
Source§impl Default for GlyphEntry
impl Default for GlyphEntry
Source§impl PartialEq for GlyphEntry
impl PartialEq for GlyphEntry
impl StructuralPartialEq for GlyphEntry
Auto Trait Implementations§
impl Freeze for GlyphEntry
impl RefUnwindSafe for GlyphEntry
impl Send for GlyphEntry
impl Sync for GlyphEntry
impl Unpin for GlyphEntry
impl UnsafeUnpin for GlyphEntry
impl UnwindSafe for GlyphEntry
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