Create an EOT font from a TTF font
npm install grunt-ttf2eotGrunt task to create a EOT font from a TTF font.
~0.4.1If you haven't used Grunt before, be sure to check out
the Getting Started guide, as it
explains how to create a Gruntfile as
well as install and use Grunt plugins. Once you're familiar with that process,
you may install this plugin with this command:
``shell`
npm install grunt-ttf2eot --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile
with this line of JavaScript:
`js`
grunt.loadNpmTasks('grunt-ttf2eot');
to the data
object passed into grunt.initConfig().`js
grunt.initConfig({
ttf2eot: {
your_target: {
// Target-specific file lists go here.
}
}
})
`$3
#### src
Type:
stringSVG fonts to convert. Wildcards are supported.
#### dest
Type:
stringDirectory in wich to save the converted font.
$3
`js
grunt.initConfig({
ttf2eot: {
default: {
src: 'fonts/*.ttf',
dest: 'fonts/'
}
}
})
``Please submit TTF to EOT related issues to the
ttf2eot project
on wich grunt-ttf2eot is built.
This repository issues is only for grunt and grunt tasks related issues.
You may want to contribute to this project, pull requests are welcome if you
accept to publish under the MIT licence.