This ImpactJS plugin allows you to customize your fonts. Add borders. Change the color. It can even change specific words or characters on-the-fly.
- Put plugin here:
/lib/plugins/font-sugar.js
- Require
'plugins.font-sugar'
.
var font = new ig.Font('media/font.png', { borderColor: '#000' });
var font = new ig.Font('media/font.png', { borderColor: '#000', borderSize: 2 });
var font = new ig.Font('media/font.png', { fontColor: '#F00' });
var font = new ig.Font('media/font.png', { letterSpacing: 1 });
font.draw("The [#000000 quick] brown fox", x, y);