npm promulgates marsupials
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    grunt-ttf2woffpublic

    grunt-ttf2woff

    Grunt task to create a WOFF font from a TTF font.

    Getting Started

    This plugin requires Grunt ~0.4.1

    If 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:

    npm install grunt-ttf2woff --save-dev

    Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

    grunt.loadNpmTasks('grunt-ttf2woff');

    The "ttf2woff" task

    Overview

    In your project's Gruntfile, add a section named ttf2woff to the data object passed into grunt.initConfig().

    grunt.initConfig({
      ttf2woff: {
        your_target: {
          // Target-specific file lists go here.
        }
      }
    })

    Options

    src

    Type: string

    SVG fonts to convert. Wildcards are supported.

    dest

    Type: string

    Directory in wich to save the converted font.

    Example

    grunt.initConfig({
        ttf2woff: {
            default: {
                src: ['fonts/*.ttf'],
                dest: 'fonts/'
            }
        }
    });

    Contributing / Issues

    Please submit TTF to WOFF related issues to the ttf2woff project on wich grunt-ttf2woff 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.

    install

    npm i grunt-ttf2woff

    Downloadsweekly downloads

    82

    version

    1.0.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar