Skip to content
  • Content »
  • Kernfusion »
  • Fuses »
  • Nmbr73 »

SDF Font Example

With Otavio Good's shader_fontgen one can create a SDF (signed distance function) based font texture. For a good introduction into SDF Fonts based on the technique proposed by Chris Green of Valve at SIGGRAPH 2007 see SDFont, a Signed Distance Font Generator and Runtime Utility by Shoichiro Yamanishi. See About SDF fonts in the Unity manual to quickly get the idea.

comp

Examples of how to render the SDF font into text:
- SDF font 0 by IFHEo
- SDF Font Texture Adventures ... uses the font texture and adds some effects

Shadertoys using the SDF font texture:
- GPU and OS detector v2 by archee
- iResolution, iMouse, iDate, etc by FabriceNeyret2
- [SH17C] Physically Based Shading by knarkowicz

Other Shadertoys that display text:
- Pangram ... just "paints" the letters - no texture needed
- 96-bit 8x12 Font ... a pixel font - no texture needed