php-font-lib
php-font-lib copied to clipboard
Undefined outline causes font parsing failure
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
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.