Struct webgl2_glyph::glyph_brush::GlyphCalculatorGuard [−][src]
pub struct GlyphCalculatorGuard<'brush, F = FontArc, X = Extra, H = RandomXxHashBuilder64> where
F: 'brush, { /* fields omitted */ }
Expand description
GlyphCalculator
scoped cache lock.
Trait Implementations
impl<'_, F, X, H> GlyphCruncher<F, X> for GlyphCalculatorGuard<'_, F, X, H> where
F: Font,
X: Clone + Hash,
H: BuildHasher,
impl<'_, F, X, H> GlyphCruncher<F, X> for GlyphCalculatorGuard<'_, F, X, H> where
F: Font,
X: Clone + Hash,
H: BuildHasher,
pub fn glyphs_custom_layout<'a, S, L>(
&'b mut self,
section: S,
custom_layout: &L
) -> Iter<'b, SectionGlyph> where
X: 'a,
L: GlyphPositioner + Hash,
S: Into<Cow<'a, Section<'a, X>>>,
pub fn glyphs_custom_layout<'a, S, L>(
&'b mut self,
section: S,
custom_layout: &L
) -> Iter<'b, SectionGlyph> 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 more
pub 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>>>,
pub 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
Returns the available fonts. Read more
Returns an iterator over the PositionedGlyph
s of the given section. Read more