pub struct RunGlyph {
pub id: u16,
pub x: f64,
pub y: f64,
pub text: Range<usize>,
}Expand description
One glyph of a run: which glyph, where its origin sits, and which bytes of the run’s text it was shaped from.
Fields§
§id: u16The glyph ID in the face.
x: f64The origin across, in run space: points at the run’s size.
y: f64The origin up, in run space (y up, as text space is).
text: Range<usize>The cluster this glyph belongs to, as a byte range of
GlyphRun::text. Glyphs of one cluster share the range; a ligature
is one glyph whose range covers every letter it joins.
Trait Implementations§
impl StructuralPartialEq for RunGlyph
Auto Trait Implementations§
impl Freeze for RunGlyph
impl RefUnwindSafe for RunGlyph
impl Send for RunGlyph
impl Sync for RunGlyph
impl Unpin for RunGlyph
impl UnsafeUnpin for RunGlyph
impl UnwindSafe for RunGlyph
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§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.