php-font-lib icon indicating copy to clipboard operation
php-font-lib copied to clipboard

Undefined outline causes font parsing failure

Open bsweeney opened this issue 3 years ago • 1 comments

If an outline is created without a non-positive size the raw value is unset. This causes an error in PHP 8.1 when trying to subset the font since there is no outline to encode.

Deprecated: mb_strlen(): Passing null to parameter 1 ($string) of type string is deprecated in php-font-lib/src/FontLib/Glyph/Outline.php on line 99

bsweeney avatar Dec 17 '21 19:12 bsweeney

While the actual error is addressed in 0.5.4 this issue is likely caused by some incorrect logic elsewhere and the issue could use further investigation.

bsweeney avatar Dec 17 '21 19:12 bsweeney