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

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

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.