pub struct Glyph {
pub id: GlyphId,
pub scale: PxScale,
pub position: Point,
}
Expand description
A glyph with pixel scale & position.
Fields§
§id: GlyphId
Glyph id.
scale: PxScale
Pixel scale of this glyph.
position: Point
Position 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 PartialEq for Glyph
impl PartialEq for Glyph
source§impl PartialOrd for Glyph
impl PartialOrd for Glyph
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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