Creates signed distance fields out of OpenType/TrueType fonts

Usage no npm install needed!

<script type="module">
  import elasticFontnik from 'https://cdn.skypack.dev/@elastic/fontnik';



Generates Signed Distance Field glyphsets from OpenType fonts.

As opposed to node-fontnik, fontnik is pure-JavaScript, and instead of initially rasterizing fonts, it implements most of the algorithm with data still in vector form.

fontnik is used for the SDF generation phase of spritenik, a tool for generating PBF sprites.