:-)
Here's a patch I just put in that adds minor borders to the signwriter.
Includes update path, mildly tested, I think I got it right.
Uses a simple algorithm that underlays the text 4x in a different color, offset in different directions.
Inspiration arose from a feature request on imagecache actions http://drupal.org/node/328605
I suggested that signwriter is a better place for this sort of development. If we can find a way to integrate imagecache/imageapi/signwriter to a more common way of adding effects, it may be cool. Maybe.
Before:
http://drupal.org/files/issues/phpuser-noborder-signwriter.png" >
After:
http://drupal.org/files/issues/phpuser-border-signwriter.png" >
This particular example is used for a pretty subtle effect, but is the improvement I needed today.
Extra work on the redrawing may be added to support thicker borders. The algorithm will cause ghosting if the radius is larger than a few pixels, compared with the text. Best if it's just 1 or two pixels.
Looks like fun?
| Comment | File | Size | Author |
|---|---|---|---|
| phpuser-borders-signwriter.png | 7.33 KB | dman | |
| phpuser-noborder-signwriter.png | 6.88 KB | dman | |
| signwriter-borders-20081020.patch | 10.09 KB | dman |
Comments
Comment #1
dman commentedForgot the HTML code for the illustrations :)


Before:
After:
Comment #2
catorghans commentedGreat!,
Works for me in my current project. Did not look at the code yet, so I won't change the status, but if it's up to me this functionality becomes part of the code asap.
Comment #3
agileware commentedThanks for the patch dman, it looks good. I will look at rolling it in in the next few days.
Comment #4
smbotans commentedcan someone explain how to install the patch pls ... i really like signwriter and would love the patch installed
thanks in advance
serge
Comment #5
agileware commentedYou can find the information here - http://drupal.org/patch/apply
Except where they say the root of the drupal directory you will need to be in the root of the signwriter module.
Comment #6
agileware commentedThis is in the new 6.x-1.0-dev version that should be available today.
Comment #8
dman commentedI'm doing a CVS update to 6-2 after a long period of inactivity and found a local patch I'd made but hadn't given back.
This is an improvement on the patch I gave above, providing softer corners and the ability to set borders greater that 1px that don't get chunky immediately. It's a better algorithm - suitable for bigger text.
Is much more processor-intensive as it does multiple redraws to do proper border radiuses.
posting raw code here for posterity and reference only - I'll see if it's worth patching in to the current release after I do a clean update, my local code has branched far.