pub struct Glyph {
pub id: GlyphId,
pub scale: PxScale,
pub position: Point,
}Expand description
A glyph with pixel scale & position.
Fields§
§id: GlyphIdGlyph id.
scale: PxScalePixel scale of this glyph.
position: PointPosition of this glyph.
This point, relative to the glyph, is to the left before applying
h_advance or h_side_bearing & vertically at the “baseline”.
See glyph layout concepts.
Trait Implementations§
Source§impl AsRef<Glyph> for OutlinedGlyph
impl AsRef<Glyph> for OutlinedGlyph
Source§impl PartialOrd for Glyph
impl PartialOrd for Glyph
impl StructuralPartialEq for Glyph
Auto Trait Implementations§
impl Freeze for Glyph
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnwindSafe for Glyph
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