
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
gulp-ttf2woff
Advanced tools
Create a WOFF font from a TTF one
First, install gulp-ttf2woff as a development dependency:
npm install --save-dev gulp-ttf2woff
Then, add it to your gulpfile.js:
import ttf2woff from 'gulp-ttf2woff';
gulp.task('ttf2woff', () => {
gulp.src(['fonts/*.ttf'], {
encoding: false, // Important!
removeBOM: false,
})
.pipe(ttf2woff())
.pipe(gulp.dest('fonts/'));
});
Type: Boolean
Default value: false
Set to true to also convert files that doesn't have the .ttf extension.
Type: Boolean
Default value: false
Set to true to clone the file before converting him so that it will output the original file too.
You may look after a full Gulp web font workflow, see gulp-iconfont fot that matter.
Please submit TTF to WOFF related issues to the ttf2woff project on wich gulp-ttf2woff 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.
FAQs
Create a WOFF font from a TTF one
The npm package gulp-ttf2woff receives a total of 27,092 weekly downloads. As such, gulp-ttf2woff popularity was classified as popular.
We found that gulp-ttf2woff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.