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.73k stars 256 forks source link

Fix one more deprecation notice with PHP 8.1 #102

Closed Mellthas closed 2 years ago

Mellthas commented 2 years ago

When using font subsetting via CPDF, an empty font file is created and opened initially, and $this->raw will be null at this point.

See https://github.com/dompdf/dompdf/pull/2668#issuecomment-996896902.