fontsdf
Signed Distance Field (SDF) textures can be used to render text or other vector art more flexibly[1], with higher quality while using less video memory (for the texture).
[1] For example:
- It is possible to use single 64px glyph to render both 14px and 200px text.
- It is easy to add glow, outlines and such.
Example usage with image:
let font = from_bytes.unwrap;
let = font.rasterize;
from_raw
.unwrap
.save
.unwrap;