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

Request #2449 Change color of text by word
Submitted: 2004-10-04 15:50 UTC
From: se at hexatex dot de Assigned:
Status: Open Package: Image_Text
PHP Version: 4.3.8 OS:
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: se at hexatex dot de
New email:
PHP Version: Package Version: OS:

 

 [2004-10-04 15: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

Comments