Generate fallback fonts from a CSS file using fontpie.
npx fontpie-from-css <css-file>
Note: Font files are loaded relative to the CSS file, ideally the CSS file should be in the same directory as the font files.
You can output the result to a file by using >
or append to a file using >>
.
npx fontpie-from-css <css-file> > <output-file>
npx fontpie-from-css <css-file> >> <output-file>
- fontpie - The tool this project is based on
- Google Fonts - Download free fonts
- transfonter - For generating a CSS file from font files
This project is a simple wrapper around fontpie by pixel-point. All credit for the heavy lifting goes to them.
MIT