VDTFont
A novel library for converting glyphs into triangulations which can be used right in the Graphical APIs.
use ;
// Create a font
let font_data = include_bytes!;
let mut font = from_vec?;
// Obtain a glyph
let glyph = font.glyph;
// Outline the glyph
let outlined_glyph = font.outline_glyph;
// Triangulate th glyph
let triangulated_glyph = font.triangulate_glyph?;
// Use the resulting triangulation
triangulated_glyph
.triangles
.
.for_each