PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Images » Image_Graph » Bug #4484

SVG output problem with fill and alignment attributes of text

Details

Submitted2005-05-31 12:01 UTC
Fromruipraxis at hotmail dot com
Assignednosey
StatusClosed
PackageImage_Graph
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2005-05-31 12:01 UTC] ruipraxis at hotmail dot com

Description:
------------
The "fill" attribute for text is incorrectly exported to svg files as "fill=rgb(...);" instead of "fill:rgb(...);".

This causes problems in some viewers/editors, since color is not correctly rendered, and in some cases alignment is also incorrect, since it is placed after the fill attribute, and consequently ignored. This problem still exists in version 0.4.0

Reproduce code:
---------------
The problem is in the "write()" function of the SVG driver (svg.php). Replacing "fill=" by "fill:" solves it.

[2005-05-31 12:03 UTC] ruipraxis at hotmail dot com

(corrected the bug summary)

[2005-06-03 19:06 UTC] pear dot nosey at veggerby dot dk

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.