fontmesh
A fast Rust library for converting TrueType font glyphs to 2D and 3D triangle meshes. A faster, pure Rust alternative to ttf2mesh.
Quick Start
use Font;
let font = from_bytes?;
// 2D mesh
let mesh_2d = font.glyph_to_mesh_2d?;
// 3D mesh with custom quality
let mesh_3d = font.glyph_by_char?
.with_subdivisions
.to_mesh_3d?;
Examples
Performance
fontmesh is 2-3x faster than comparable libraries.
Run benchmarks: cargo bench
License
MIT