pub struct PlacedGlyph {
pub face: FaceId,
pub gid: u16,
pub ch: char,
pub x: f64,
pub y: f64,
pub size: f64,
pub span: Span,
}Expand description
A positioned glyph in the final layout. Units are ems of the base
(text-style) size; y is the baseline-relative vertical position,
positive up; size is the glyph’s own size factor (1.0 / 0.7 / 0.5 per
style).
Fields§
§face: FaceIdThe face the glyph comes from.
gid: u16Glyph id in that face.
ch: charThe character the glyph renders.
x: f64Horizontal position of the glyph origin, in ems.
y: f64Baseline-relative vertical position, in ems, y-up.
size: f64Size factor relative to the base size.
span: SpanSource span of the construct that produced the glyph.
Trait Implementations§
Source§impl Clone for PlacedGlyph
impl Clone for PlacedGlyph
Source§fn clone(&self) -> PlacedGlyph
fn clone(&self) -> PlacedGlyph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlacedGlyph
impl Debug for PlacedGlyph
Source§impl PartialEq for PlacedGlyph
impl PartialEq for PlacedGlyph
impl StructuralPartialEq for PlacedGlyph
Auto Trait Implementations§
impl Freeze for PlacedGlyph
impl RefUnwindSafe for PlacedGlyph
impl Send for PlacedGlyph
impl Sync for PlacedGlyph
impl Unpin for PlacedGlyph
impl UnsafeUnpin for PlacedGlyph
impl UnwindSafe for PlacedGlyph
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