agentk/grunt-fontgen — pull request #2 by iham (2014-03-19 18:15:41+00:00)
Title: added embed and fontdir based on fontname.

hi agentk,

based on grunt-webfont i've added embed base64 for woff and ttf based on the embed option.
a second thing i've changed: the folder structure:
it's now based on the font name

lets say this config ...
build: {
options: {
path_prefix: '../fonts/',
stylesheet: 'fonts/fonts.css',
embed: ['woff', 'ttf'] // or false | true | woff | ttf
},
files: [{
src: ['/fonts/*.{otf,ttf}'],
dest: 'app/fonts'
}]
}

... gives us
/fonts/Arial.otf
and
/fonts/Helvetica.ttf

this will lead to
app/fonts/Arial/Arial.(eot, svg, ...)
app/fonts/Helvetica/Helvetica.(eot, svg, ...)

hope u like it, or can use parts of it :)

regards
iham