Fonts
You can generate your own msdf fonts using Don McCurdy's msdf font generator.
- Download the .ttf file from Google Fonts or any other source.
- Visit https://msdf-bmfont.donmccurdy.com/
- Paste in the character set you need. For all ascii characters, you can use this:
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
- Set the texture size to 512x512 and click generate. If it warns about multiple textures, set to 1024x1024.
- Download the generated .json and .png files and place them somewhere accessible on the internet (eg in your
public
directory for a vite app).