pub struct GlyphOutline {
pub polylines: Vec<Vec<[f32; 2]>>,
pub advance: f32,
}Expand description
Flattened polylines for one glyph plus its advance — all in normalized em space (x→right, y→up, baseline at 0). Callers map this into 2D screen space or onto a 3D plane.
Fields§
§polylines: Vec<Vec<[f32; 2]>>§advance: f32Trait Implementations§
Source§impl Clone for GlyphOutline
impl Clone for GlyphOutline
Source§fn clone(&self) -> GlyphOutline
fn clone(&self) -> GlyphOutline
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 moreAuto Trait Implementations§
impl Freeze for GlyphOutline
impl RefUnwindSafe for GlyphOutline
impl Send for GlyphOutline
impl Sync for GlyphOutline
impl Unpin for GlyphOutline
impl UnsafeUnpin for GlyphOutline
impl UnwindSafe for GlyphOutline
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