Struct luminance_glyph::Extra
source · Expand description
Default extra
field type. Non-layout data for vertex generation.
Fields§
§color: [f32; 4]
§z: f32
Trait Implementations§
source§impl<B, F: Font, H: BuildHasher> GlyphCruncher<F, Extra> for GlyphBrush<B, F, H>where
B: GlyphBrushBackend,
impl<B, F: Font, H: BuildHasher> GlyphCruncher<F, Extra> for GlyphBrush<B, F, H>where
B: GlyphBrushBackend,
source§fn glyphs_custom_layout<'a, 'b, S, L>(
&'b mut self,
section: S,
custom_layout: &L
) -> SectionGlyphIter<'b>where
L: GlyphPositioner + Hash,
S: Into<Cow<'a, Section<'a>>>,
fn glyphs_custom_layout<'a, 'b, S, L>(
&'b mut self,
section: S,
custom_layout: &L
) -> SectionGlyphIter<'b>where
L: GlyphPositioner + Hash,
S: Into<Cow<'a, Section<'a>>>,
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
L: GlyphPositioner + Hash,
S: Into<Cow<'a, Section<'a>>>,
fn glyph_bounds_custom_layout<'a, S, L>(
&mut self,
section: S,
custom_layout: &L
) -> Option<Rect>where
L: GlyphPositioner + Hash,
S: Into<Cow<'a, Section<'a>>>,
Returns a bounding box for the section glyphs calculated using each glyph’s
vertical & horizontal metrics. Read more