bogart0324
bogart0324
hi, beside from this setFont(new SVGFont('Raleway', 'fonts/raleway.ttf')), what else need to do to make the font working? I tried it but seem the correct font is not applied.
yes same with me, I manage to make it work by replacing sprintf to printf in SVGFont class constructor, see image attached, I hope I din't mess it up :)...
I got similar fatatFatal error: Uncaught Error: Using $this when not in object context in /opt/lampp/htdocs/php-svg/src/svg/SVGElement.php:23 Stack trace: #0 [internal function]: b1t\svg\SVGSVGElement::setId('a4') #1 /opt/lampp/htdocs/php-svg/src/svg/SVGObject.php(62): call_user_func(Array, 'a4') #2 /opt/lampp/htdocs/php-svg/src/svgf/SVGFElement.php(72): b1t\svg\SVGObject->__set('id', 'a4')...