oldj / node-font-list

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

Increase maxBuffer to prevent fc-list output overflow error. #12

Closed pjheslin closed 4 years ago

pjheslin commented 4 years ago

On my Debian desktop, fc-list is quite verbose and produces 464KB of output, which caused a buffer overflow error. This commit would raise that limit to 10MB. Some people have lots of fonts installed. I'm not sure if this kind of overflow is potentially an issue on other platforms.

Anyway, thanks very much for creating this package! It's just what I needed. Nice and simple and easy to deploy.

oldj commented 4 years ago

Thank you very much, this is a very good improvement, which can avoid some potential failure of the program.