Font 提取工具, 封装 font-spider
.
- api
export interface IFontExtractOptions {
rootDir?: string // root dir
filePath?: string // font path, maybe includes css
cssPath?: string // css path, default path in filePath, default name is index.css
font?: string // font
output?: string // output dir, default path in filePath, default name is dist
}
examples:
const BaleFontExtract = require('bale-font-extract').default
BaleFontExtract({
filePath: '',
font: '0123456789.,%'
})