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

php 8+ Unknown: fseek(): Passing null to parameter #2 ($offset) of ty…

Open BuslikDrev opened this issue 1 year ago • 4 comments

…pe int is deprecated in FontLib\BinaryStream.php on line 123

Unknown: fseek(): Passing null to parameter 2 ($offset) of type int is deprecated in FontLib\BinaryStream.php on line 123

BuslikDrev avatar Dec 19 '24 05:12 BuslikDrev

Can you outline the scenario where this error occurs? FontLib shouldn't attempt to read the font file with a null offset so this could be indicative of a parsing error.

bsweeney avatar Dec 19 '24 13:12 bsweeney

Can you outline the scenario where this error occurs? FontLib shouldn't attempt to read the font file with a null offset so this could be indicative of a parsing error.

Позже посмотрю в какой момент это происходит и пришлю результат.

BuslikDrev avatar Dec 19 '24 22:12 BuslikDrev

Any luck identifying the cause of the issue? Or, if you can indicate the font and the operation I should be able to figure out what happened.

bsweeney avatar Dec 31 '24 16:12 bsweeney

Any luck identifying the cause of the issue? Or, if you can indicate the font and the operation I should be able to figure out what happened.

Со шрифтами всё хорошо работает при использовании стандартного кода для их редактирования. Если для других целей использовать вызов, например, $glyph = new FontLib\Glyph\Outline($this); $glyph->parse($font); то в $offset пойдёт значение null

BuslikDrev avatar Dec 31 '24 20:12 BuslikDrev