leochocolat / msdf-svg-factory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MSDF SVG Factory

Description

  • Collection of generated MSDF SVG images
  • Node script to easily generate your MSDF SVG images using msdfgen

Installation

You first need to build msdfgen

cd msdfgen
mkdir out
cd out && cmake .. && make

Then go back to the root

cd ../../

Install node modules

npm install

Usage

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

node index.js

or using npm script

npm start

You'll be asked for a svg 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-svg-name

or using npm script

npm start -- --name your-svg-name

Note

MSDF SVG are typically used to render SVG in WebGL.

About


Languages

Language:C++ 95.6%Language:CMake 2.7%Language:JavaScript 1.1%Language:C 0.6%Language:Batchfile 0.1%