Skip to content

Reexport Vertex + VertexType from stb_truetype

fschutt requested to merge fschutt/rusttype:expose_vertex_type into master

This is necessary because I wanted to implement a SVG renderer - for this I need to export the paths that make up the characters from rusttype and export them to lyon. Because Vertex and VertexType were private, I could get them from the rusttype API - but then I couldn't do anything with them, i.e. match vertex_type { } wasn't possible, since VertexType is private.

See https://github.com/maps4print/azul/blob/204db2ded5b5c95b095a49f943121b7fdbb07111/src/widgets/svg.rs#L1576-L1590 - this isn't possible if Vertex and VertexType aren't public.

Merge request reports