Newtonian Particle Motion
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

fontpath-test-fonts

0.0.4 • Public • Published

Holds a few open-source test font faces for fontpath. This allows the various demos to all depend on centralized and versioned assets.

The fonts are generated and stored in the lib folder, using the CommonJS export option of the tool. The main index.js will require and export them dynamically. Generally, for browserify and other tools, it's best to require the fonts manually like so:

var Font = require('fontpath-test-fonts/lib/OpenSans-Regular.ttf');

font size

The fonts are generated with 32 pt size. The size of the generated font may affect its kerning and positioning, depending on the font size you are rendering it at.

building

You need to first install fontpath: npm install fontpath -g

Then you can run the build script. You may need to chmod it first:

chmod +x ./build.sh
./build.sh

install

npm i fontpath-test-fonts

Downloadsweekly downloads

3

version

0.0.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability