Struct rusttype::ScaledGlyph [−][src]
pub struct ScaledGlyph<'font> { /* 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
A reference to this glyph without the scaling
Builds the outline of the glyph with the builder specified. Returns
false
when the outline is either malformed or empty.
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.
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.
Trait Implementations
Auto Trait Implementations
impl<'font> RefUnwindSafe for ScaledGlyph<'font>
impl<'font> Send for ScaledGlyph<'font>
impl<'font> Sync for ScaledGlyph<'font>
impl<'font> Unpin for ScaledGlyph<'font>
impl<'font> UnwindSafe for ScaledGlyph<'font>
Blanket Implementations
Mutably borrows from an owned value. Read more