Function nannou::text::glyph::path_events[][src]

pub fn path_events(
    glyph: ScaledGlyph<'_>
) -> Option<impl Iterator<Item = PathEvent>>
Expand description

Produce the lyon path for the given scaled glyph.

Returns None if glyph.shape() or glyph.exact_bounding_box() returns None.

TODO: This could be optimised by caching path events glyph ID and using normalised glyphs.