You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatal error:
Uncaught TypeError:
Argument 1 passed to SVG\Rasterization\Transform\Transform::resize() must be of the type float, null given,
called in php-svg\src\Rasterization\Renderers\TextRenderer.php on line 31
and defined in php-svg\src\Rasterization\Transform\Transform.php on line 94
Setting the font size explicitly fixes the problem:
$text->setStyle('font-size', '12pt');
There should be a default font size used, in case none is explicitly defined, to avoid this error.
The text was updated successfully, but these errors were encountered:
The following code leads to an error:
Error:
Setting the font size explicitly fixes the problem:
There should be a default font size used, in case none is explicitly defined, to avoid this error.
The text was updated successfully, but these errors were encountered: