Struct nannou::text::ScaledGlyph [−][src]
pub struct ScaledGlyph<'a> { /* fields omitted */ }
Expand description
A glyph augmented with scaling information. You can query such a glyph for information that depends on the scale of the glyph.
Implementations
The font to which this glyph belongs. If the glyph is a standalone glyph
that owns its resources, it no longer has a reference to the font which
it was created from (using standalone()
). In which case, None
is
returned.
A reference to this glyph without the scaling
Augments this glyph with positioning information, making methods that depend on the position of the glyph available.
Retrieves the “horizontal metrics” of this glyph. See HMetrics
for
more detail.
Produces a list of the contours that make up the shape of this glyph.
Each contour consists of a sequence of segments. Each segment is either
a straight Line
or a Curve
.
The winding of the produced contours is clockwise for closed shapes, anticlockwise for holes.
The bounding box of the shape of this glyph, not to be confused with
pixel_bounding_box
, the conservative pixel-boundary bounding box. The
coordinates are relative to the glyph’s origin.
Constructs a glyph that owns its data from this glyph. This is similar
to Glyph::standalone
. See that function for more details.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for ScaledGlyph<'a>
impl<'a> Send for ScaledGlyph<'a>
impl<'a> Sync for ScaledGlyph<'a>
impl<'a> Unpin for ScaledGlyph<'a>
impl<'a> UnwindSafe for ScaledGlyph<'a>
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more