在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):nfroidure/gulp-svg2ttf开源软件地址(OpenSource Url):https://github.com/nfroidure/gulp-svg2ttf开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-svg2ttf
UsageFirst, install npm install --save-dev gulp-svg2ttf Then, add it to your var svg2ttf = require('gulp-svg2ttf');
gulp.task('svg2ttf', function(){
gulp.src(['fonts/*.svg'])
.pipe(svg2ttf())
.pipe(gulp.dest('fonts/'));
}); StatsAPIsvg2ttf(options)options.ignoreExtType: Set to true to also convert files that doesn't have the .svg extension. options.cloneType: Set to true to clone the file before converting him so that it will output the original file too. options.timestampType: Override the TTF font creation/modification date. options.copyrightType: Allows to set to your copyright informations. options.versionType: Allows to set the version number of the font. Needs to be in the format NoteYou may look after a full Gulp web font workflow, see gulp-iconfont fot that matter. Contributing / IssuesPlease 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. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论