• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

nfroidure/gulp-svg2ttf: Create a TTF font from an SVG font

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

nfroidure/gulp-svg2ttf

开源软件地址(OpenSource Url):

https://github.com/nfroidure/gulp-svg2ttf

开源编程语言(OpenSource Language):

JavaScript 100.0%

开源软件介绍(OpenSource Introduction):

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.

options.version

Type: String Default value: undefined (results in version 1.0)

Allows to set the version number of the font. Needs to be in the format Version <NUM>.<NUM> (the Version prefix is optional).

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.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap