Struct ab_glyph::PxScaleFont[][src]

pub struct PxScaleFont<F> {
    pub font: F,
    pub scale: PxScale,
}
Expand description

A Font and an associated pixel scale.

Fields

font: Fscale: PxScale

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the pixel scale associated with this font.

Returns a font reference.

Returns an iterator of all distinct (GlyphId, char) pairs. Not ordered. Read more

Scale factor for unscaled font horizontal values.

Scale factor for unscaled font vertical values.

Pixel scaled glyph ascent.

Pixel scaled glyph descent.

Pixel scaled height ascent - descent. Read more

Pixel scaled line gap.

Lookup a GlyphId matching a given char.

Construct a Glyph with the font’s pixel scale at position point(0.0, 0.0). Read more

Pixel scaled horizontal advance for a given glyph.

Pixel scaled horizontal side bearing for a given glyph.

Pixel scaled vertical advance for a given glyph.

Pixel scaled vertical side bearing for a given glyph.

Returns additional pixel scaled kerning to apply for a particular pair of glyphs.

Returns the layout bounds of this glyph. These are different to the outline px_bounds(). Read more

The number of glyphs present in this font. Glyph identifiers for this font will always be in the range 0..self.glyph_count() Read more

Compute glyph outline ready for drawing. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.