node-font-list
node-font-list copied to clipboard
Get the list of fonts installed in the system.
正常情况下,`electron-builder` 默认是不会将 `font-list` 打包的,所以导致无法使用,通过 `extraResources` 执行处理即可,下面为使用步骤: 1. 在 `package.json` 中添加 ``` "extraResources": [ "./extraResources/**" ], ``` 2. 在项目根目录创建 `extraResources/fontlist` 文件夹,将 `node_modules/font-list` 下的文件源码复制到 `extraResources` 下 ``` extraResources └─fontlist ├─getSystemFonts.js ├─index.d.ts ├─index.js...
`__dirname` has different meaning in electron-builder, in `font-list/libs/darwin/index.js` `const bin = path.join(__dirname, 'fontlist')` can't get the correct path of the `fontlist` file. Is there any solution?
不能正常装进 app.asar
中文乱码
当前版本:1.2.11 当前系统:win10 当前nodejs:12.13.0 #13 中提到的强制使用utf8代码页`chcp 65001`并不是一个万能的解决方案。在我的电脑中这并不能按照预期工作,还是有乱码: ``` 215: ""Yu Gothic UI Semilight"" 216: ""Yu Gothic UI"" 217: ""Yu Gothic"" 218: "ܛ�����w" 219: ""ܛ�����w Light"" 220: "���ź�" 221: ""���ź� Light"" 222:...
建议直接在运行时判断文件是否存在,如果不存在则通过fs库将vbs内容写出到这个位置就好了
In my using case, I need to get available fonts in AE CEP extension. I using this package to get font name list, but I found that AE using font...
windows 7 上无法正常获取字体列表,windows 10 上正常