1.1.2 • Published 9 years ago

otf2ttf v1.1.2

Weekly downloads
20
License
MIT
Repository
github
Last release
9 years ago

otf2ttf

Convert OpenType font to TryeType format with FontForge.

Features

  • CLI support,
  • Gulp support,
  • Additional font data in file stream

Requirements

otf2ttf depends on FontForge. Before using this module you need to install it.

Installation

Install the module as CLI tool with sudo npm install -g otf2ttf, or your project dependency: npm install [--save||--save-dev] otf2ttf

Usage

with CLI

otf2ttf <files> [<destination-path>]

Integration with Gulp

var gulp = require('gulp'),
    otf2ttf = require('otf2ttf');

gulp.task('otf2ttf', [], function () {
    return gulp.src("**/*.otf")
        .pipe(otf2ttf())
        .pipe(gulp.dest(function(file){
            return "build/" + file.data.fontName
        }));
});

Options

debug

default: false

License

MIT