pub struct GlyphOutline {
pub units_per_em: u16,
pub commands: Vec<OutlineCommand>,
}Expand description
Glyph outline in font design units, with empty commands for invisible glyphs such as spaces.
Fields§
§units_per_em: u16The font units per em; outline coordinates are in these units.
commands: Vec<OutlineCommand>Ordered outline path commands for this glyph.
Trait 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 moreSource§impl Debug for GlyphOutline
impl Debug for GlyphOutline
Source§impl Default for GlyphOutline
impl Default for GlyphOutline
Source§fn default() -> GlyphOutline
fn default() -> GlyphOutline
Returns the “default value” for a type. Read more
Source§impl PartialEq for GlyphOutline
impl PartialEq for GlyphOutline
Source§fn eq(&self, other: &GlyphOutline) -> bool
fn eq(&self, other: &GlyphOutline) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GlyphOutline
Auto 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