webfonts-helper
v0.1.2
Published
``` npm install webfonts-helper --g ```
Downloads
99
Readme
svg2font
npm install webfonts-helper --gjs
const webFontsHelper = require('webfonts-helper')
webFontsHelper(options)command
webFontsHelperfeature
- [x] support svg to 'ttf', 'woff', 'woff2', 'eot'
- [ ] support ttf to 'woff', 'woff2', 'eot'
options
| props | defaultValue | description | | :---- | :------ | :---- | | src | - | svg dir | | formats | ['svg', 'ttf', 'woff', 'woff2', 'eot'] | font type | | fontName | icon-font | font family name you want | | fontPath | - | font family dest| | className | icon | css className|
