How to get the outline of a glyph?
I'm trying to render a font to SVG, for this I need the paths that make up the outline of a glyph. In stb_truetype
, it's possible to get the outline for a glyph, given its index:
https://docs.rs/stb_truetype/0.3.1/stb_truetype/struct.FontInfo.html#method.get_glyph_shape
Is there a function like this in rusttype, too or could this be added? Thanks.