oldj / node-font-list

Get the list of fonts installed in the system.
MIT License
135 stars 21 forks source link

On Windows 10, the fonts have `:` in its name will be missing from the font list #23

Closed jonz94 closed 2 years ago

jonz94 commented 2 years ago

For example, if the font named Lato:Regular has installed, when running demo.js from this repository by the following command in PowerShell:

PS> node demo.js | Select-String 'Lato:'

Nothing will be print out. The Lato:Regular font is missing from the font list.

jonz94 commented 2 years ago

But if I directory execute the fonts.vbs script, the Lato:Regular will show up:

圖片

So maybe the issue is from the getByPowerShell.js