pub(crate) struct ShapedGlyph {
pub id: GlyphId,
pub y_offset: i32,
}
Fields§
§id: GlyphId
§y_offset: i32
This may be used for computing vertical alignment zones, particularly for glyphs like super/subscripts which might have adjustments in GPOS.
Note that we don’t do the same in the horizontal direction which means that we don’t care about the x-offset.
Trait Implementations§
Source§impl Clone for ShapedGlyph
impl Clone for ShapedGlyph
Source§fn clone(&self) -> ShapedGlyph
fn clone(&self) -> ShapedGlyph
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 ShapedGlyph
impl Debug for ShapedGlyph
Source§impl Default for ShapedGlyph
impl Default for ShapedGlyph
Source§fn default() -> ShapedGlyph
fn default() -> ShapedGlyph
Returns the “default value” for a type. Read more
impl Copy for ShapedGlyph
Auto Trait Implementations§
impl Freeze for ShapedGlyph
impl RefUnwindSafe for ShapedGlyph
impl Send for ShapedGlyph
impl Sync for ShapedGlyph
impl Unpin for ShapedGlyph
impl UnwindSafe for ShapedGlyph
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