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: F
scale: PxScale
Implementations
Trait Implementations
fn codepoint_ids(&self) -> CodepointIdIter<'_>ⓘNotable traits for CodepointIdIter<'a>impl<'a> Iterator for CodepointIdIter<'a> type Item = (GlyphId, char);
fn codepoint_ids(&self) -> CodepointIdIter<'_>ⓘNotable traits for CodepointIdIter<'a>impl<'a> Iterator for CodepointIdIter<'a> type Item = (GlyphId, char);
Notable traits for CodepointIdIter<'a>
impl<'a> Iterator for CodepointIdIter<'a> type Item = (GlyphId, char);
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 horizontal side bearing 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
impl<F> RefUnwindSafe for PxScaleFont<F> where
F: RefUnwindSafe,
impl<F> Send for PxScaleFont<F> where
F: Send,
impl<F> Sync for PxScaleFont<F> where
F: Sync,
impl<F> Unpin for PxScaleFont<F> where
F: Unpin,
impl<F> UnwindSafe for PxScaleFont<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more