leochocolat / msdf-font-factory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MSDF Font Factory

Description

  • Collection of generated MSDF Font files and Atlas
  • Node script to easily generate your font files with the right settings. Using msdf-bmfont-xml

Usage

You can just download the files located in the output folders of any font you want.

To generate a new font just duplicate an existing font folder, rename it with the name you want, add the .ttf file, check the config file and then run :

node index.js

or using npm script

npm start

You'll be asked for a font name, use the name of folder you just created.

You can also directly pass the font name as an argument like this :

node index.js --name your-font-name

or using npm script

npm start -- --name your-font-name

Note

MSDF Fonts are typically used to render text in WebGL. Here how you can use them with Three.js github.com/Jam3/three-bmfont-text.

About


Languages

Language:JavaScript 100.0%