Struct glyph_brush::GlyphCalculatorGuard
source · pub struct GlyphCalculatorGuard<'brush, F: 'brush = FontArc, X = Extra, H = DefaultSectionHasher> { /* private fields */ }
Expand description
GlyphCalculator
scoped cache lock.
Trait Implementations§
source§impl<F: Font, X, H: BuildHasher> Debug for GlyphCalculatorGuard<'_, F, X, H>
impl<F: Font, X, H: BuildHasher> Debug for GlyphCalculatorGuard<'_, F, X, H>
source§impl<F, X, H> Drop for GlyphCalculatorGuard<'_, F, X, H>
impl<F, X, H> Drop for GlyphCalculatorGuard<'_, F, X, H>
source§impl<F: Font, X: Clone + Hash, H: BuildHasher> GlyphCruncher<F, X> for GlyphCalculatorGuard<'_, F, X, H>
impl<F: Font, X: Clone + Hash, H: BuildHasher> GlyphCruncher<F, X> for GlyphCalculatorGuard<'_, F, X, H>
source§fn glyphs_custom_layout<'a, 'b, S, L>(
&'b mut self,
section: S,
custom_layout: &L
) -> SectionGlyphIter<'b>where
X: 'a,
L: GlyphPositioner + Hash,
S: Into<Cow<'a, Section<'a, X>>>,
fn glyphs_custom_layout<'a, 'b, S, L>( &'b mut self, section: S, custom_layout: &L ) -> SectionGlyphIter<'b>where X: 'a, L: GlyphPositioner + Hash, S: Into<Cow<'a, Section<'a, X>>>,
Returns an iterator over the
PositionedGlyph
s of the given section with a custom layout. Read moresource§fn glyph_bounds_custom_layout<'a, S, L>(
&mut self,
section: S,
custom_layout: &L
) -> Option<Rect>where
X: 'a,
L: GlyphPositioner + Hash,
S: Into<Cow<'a, Section<'a, X>>>,
fn glyph_bounds_custom_layout<'a, S, L>( &mut self, section: S, custom_layout: &L ) -> Option<Rect>where X: 'a, L: GlyphPositioner + Hash, S: Into<Cow<'a, Section<'a, X>>>,
Returns a bounding box for the section glyphs calculated using each glyph’s
vertical & horizontal metrics. Read more