superbiche / SuperBuild

A full-featured Gulp workflow for theme development
0 stars 0 forks source link

Generate @font-face declarations from a template #7

Open superbiche opened 8 years ago

superbiche commented 8 years ago

When adding custom fonts, consider a way to write the @font-face declaration for this fonts, based on a template. Could be run from the command line, or automated from a map file - just like https://www.npmjs.com/package/gulp-google-webfonts does.

See if these plugins could help: https://github.com/jonathantneal/postcss-font-magician https://www.npmjs.com/package/gulp-fontgen https://www.npmjs.com/package/fontfacegen

Read these: https://discourse.roots.io/t/pulling-font-face-css-files-automatically-into-your-workflow-with-gulp/4213