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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)