node font list:获取系统中安装的字体列表 源码

qqprohibitive63929 91 0 ZIP 2021-02-06 22:02:53

字体列表 font-list是Node.js软件包,用于列出系统上可用的字体。 当前版本支持MacOS , Windows和Linux 。 安装 npm install font-list 用法 const fontList = require ( 'font-list' ) fontList . getFonts ( ) . then ( fonts => { console . log ( fonts ) } ) . catch ( err => { console . log ( err ) } ) 返回值fonts是一个数组,如下所示: [ '"A

用户评论
请输入评论内容
评分:
暂无评论