1.0.1 • Published 1 year ago

bale-font-extract v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Font 提取工具

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.,%'
})