0.0.2 • Published 12 months ago

pick-webfont v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

pick-webfont

本项目由webfont-pick修改而来,用于自用

更新

修复了模板的classname问题

安装

npm install pick-webfont -g

命令行

pick-webfont --font=/xxx/1.ttf --text="你好,世界!" -o ~/Desktop/webfont

程序调用

pick-webfont(options, callback)

options.font

Type: String Default: undefined

源字体文件路径,系统安装的字体一般会出现在:WindowsC:\WINDOWS\fontsMac/Library/Fonts

opitons.text

Type: String Default: undefined

挑选的文本

options.fontName

Type: String Default: webfont

目标字体名称

options.className

Type: String Default: web-font

目标样式名称

options.output

Type: String Default: .

输出目录