dompdf / php-font-lib

A library to read, parse, export and make subsets of different types of font files.
GNU Lesser General Public License v2.1
1.74k stars 255 forks source link

Update README.md with "$font->close()". #106

Closed denisrpriebe closed 2 years ago

denisrpriebe commented 2 years ago

Add $font->close(); to example in README file.

In the case where you have a script that uses this library to read / parse a lot of fonts at once, it is a good idea to call $font->close(); in order to free up the system processes. If you don't, you may get a "failed to open dir: Too many open files" exception thrown.