Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-svg2ttf

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-svg2ttf

Create a TTF font from an SVG font

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18K
decreased by-11.86%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-svg2ttf

Create a TTF font from an SVG font with Gulp.

NPM version Build status Dependency Status devDependency Status Coverage Status Code Climate

Usage

First, install gulp-svg2ttf as a development dependency:

npm install --save-dev gulp-svg2ttf

Then, add it to your gulpfile.js:

var svg2ttf = require('gulp-svg2ttf');

gulp.task('svg2ttf', function(){
  gulp.src(['fonts/*.svg'])
    .pipe(svg2ttf())
    .pipe(gulp.dest('fonts/'));
});

Stats

NPM NPM

API

svg2ttf(options)

options.ignoreExt

Type: Boolean Default value: false

Set to true to also convert files that doesn't have the .svg extension.

options.clone

Type: Boolean Default value: false

Set to true to clone the file before converting him so that it will output the original file too.

options.timestamp

Type: Number Default value: Math.round(Date.now()/1000)

Override the TTF font creation/modification date.

options.copyright

Type: String Default value: Fontello ad or SVG Font copyright metadata.

Allows to set to your copyright informations.

Note

You may look after a full Gulp web font workflow, see gulp-iconfont fot that matter.

Contributing / Issues

Please submit SVG to TTF related issues to the svg2ttf project on wich gulp-svg2ttf is built.

This repository issues is only for gulp and gulp tasks related issues.

You may want to contribute to this project, pull requests are welcome if you accept to publish under the MIT licence.

Keywords

FAQs

Package last updated on 26 Jun 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc