pub struct Glyph {
pub master_name: String,
pub master_index: usize,
pub curves: Vec<BezPath>,
pub points: Vec<Vec<GlyfPoint>>,
/* private fields */
}Expand description
A glyph at a given location, containing per-contour information
The easiest way to construct a glyph for testing is to start with
a BezGlyph and call into() on it, then modify its master name
and index.
Once you have two glyphs, you can test their interpolability by
passing them to run_tests.
Fields§
§master_name: StringThe name of the master
master_index: usizeThe index of the master
curves: Vec<BezPath>The glyph’s contours
points: Vec<Vec<GlyfPoint>>The glyph’s points
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Glyph
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnwindSafe for Glyph
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more