VDTFont

A novel library for converting glyphs into triangulations which can be used right in the Graphical APIs.

```rust use vdtfont::{, delaunay::};

// Create a font let fontdata = includebytes!("/usr/share/fonts/truetype/open-sans/OpenSans-Regular.ttf"); let mut font = Font::fromvec(fontdata.to_vec())?;

// Obtain a glyph let glyph = font.glyph('a'); // Outline the glyph let outlinedglyph = font.outlineglyph(glyph); // Triangulate th glyph let triangulatedglyph = font.triangulateglyph(outlined_glyph)?;

// Use the resulting triangulation triangulatedglyph .triangles() .handleiter::(triangulatedglyph.points()) .foreach(|triangle_handle| { // ... }) ```