php-svg-lib
php-svg-lib copied to clipboard
SVG file parsing / rendering library
This PR primarily aims to add percent x/y attribute positions to the core existing tags that support stable positions. This uses the existing `Style::convertSize` function which supports a range of...
If an image element's width/height is set to `auto` the values should be based on the image's intrinsic width/height. instead, php-svg-lib attempts to use the keyword as-is which can cause...
#### Change Detail This PR changes the attribute merging logic of `` tags to better align with the spec and other SVG renders. Previously, `` tag attributes would be directly...
- use correct format for default fill color - set default color to black for better currentcolor support - add support for alpha (hex, rgba, hsla) fixes #24 fixes #68
Per the SVG spec the [viewBox](https://svgwg.org/svg2-draft/coords.html#ViewBoxAttribute) "(specifes) a rectangle in user space that should be mapped to the bounds of the SVG viewport established by the given element, taking into...
I wonder, which license apply to this library, as the `composer.json` states that it would be `LGPL-3.0`, but your `LICENSE` file is a GPL 3.0. Did you perhaps accidentally forget...
Follow up of https://github.com/dompdf/dompdf/issues/2137 I'm using https://github.com/endroid/qr-code to create a QR code, as in the example shown there: ```php $qrCode = new \Endroid\QrCode\QrCode('Life is too short to be generating QR...
Because of the logic in SurfaceCpdf->setFont(), neither setting font to "Helvetica" or "helvetica" will work. That's because "helvetica" key is not present in the "map" array and the upper-case "Helvetica"...
php-svg-lib currently only support user-unit values (i.e. no unit identifier has been provided) for measurements. Add support for units as defined in the [SVG specification](https://www.w3.org/TR/SVG2/coords.html#Units).