Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.7.0

Request #2449 Change color of text by word
Submitted: 2004-10-04 20:50 UTC
From: se at hexatex dot de Assigned: bigmichi1
Status: Closed Package: Image_Text
PHP Version: 4.3.8 OS:
Roadmaps: 0.8.0    

 [2004-10-04 20:50 UTC] se at hexatex dot de
Description: ------------ It would be nice to be able to change the color of text by Word, so that we could have a line with text with different words having different colors. It would be even nicer to be able to do that on a character basis. Reproduce code: --------------- # that is one way it could look $image_text->setColor('#ffff00'); $image_text->addText('Eins '); $image_text->setColor('#ff0000'); $image_text->addText('Zwei '); $image_text->setColor('#00ff00'); $image_text->addText('Drei'); $image_text->render(); Expected result: ---------------- The word "Eins ", "Zwei " and "Drei " would be different colors, but on one line. Thanks Sascha Ebach


 [2013-08-12 13:51 UTC] bigmichi1 (Michael Cramer)
-Status: Open +Status: Closed -Assigned To: +Assigned To: bigmichi1
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.