Posted by 3oheme on October 15, 2009 at 8:51am
Jump to:
| Project: | Cufón |
| Version: | 6.x-1.0-beta4 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
Cufon has text-shadow and gradient support, and it'd be great if this drupal module could implement this.
Is there any way to apply this effects by theming?
Thanks and kudos for this great module!
Comments
#1
Ok, here is the trick: you can use cufon.replace functions easily, just adding the next code after the $closure variable (in page.tpl.php):
<script type="text/javascript">Cufon.replace('h1.title', {
color: '-linear-gradient(#FF0000, #000000)',
textShadow: '#000 0px 1px'
});
</script>
This example will create a color gradient from red to black, with a subtle text shadow. Follow cufon styling guide to get desired effect.
#2
Closing this since there is no 6.x maintainer.
#3
Very cool, thank you!!