New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fontina

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fontina

Make your fonts ready for @font-face

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

#Fontina

Fontina make your fonts ready for @font-face!

Fontina generates .ttf, .otf, .svg, .woff, .eot fonts from a font supported by fontforge.

A stylesheet will be created as well.

##Requirements

Before using fontina you need to install:

  • Fontforge: http://fontforge.sourceforge.net/
  • ttf2eot: http://code.google.com/p/ttf2eot/)

##Basic usage

Install it:

npm install --save grunt-fontina

Write this:

var fontina = require('fontina');
var options = {};
fontina('./fonts/font.ttf', './public/fonts', options);

Fontina will do the rest.

The options object can be configured as follow:

{
  force: false,   // if true the file extension won't be checked
  output: false,  // if true the output from the tool will be printed
  error: false,   // if true the errors from the tool will be printed
  cwd: null       // current directory from which the tools are run
}

##Integration with Grunt

Install grunt-fontina to automate your workflow.

npm install --save grunt-fontina

Load a new task in your Gruntfile.js:

grunt.loadNpmTasks('grunt-fontina');

Add a configuration block for fontina:

fontina: {
      fonts: {
        src: './fonts',           // Source directory
        dest: './public/fonts',   // Output directory
        options: {                // Fontina options object
          output: true
        }
      }
    }

##Why

I've always hated using an external service just to get my font ready.

It breaks your workflow and you have to do it every time you add a font.

##License MIT

Keywords

font

FAQs

Package last updated on 29 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts