alexheretic / ab-glyph

Rust API for loading, scaling, positioning and rasterizing OpenType font glyphs
Apache License 2.0
372 stars 24 forks source link

SDF Rasterization #76

Open cjhowedev opened 1 year ago

cjhowedev commented 1 year ago

Rasterize glyphs into a signed distance field for use in 3D graphics pipelines.

alexheretic commented 1 year ago

This would be a cool feature for sure, perhaps a new crate similar to _ab_glyphrasterizer that can take lines, quads & cubics and rasterizes a sdf result.

We could then plug that into _abglyph as a new draw_sdf fn perhaps.