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

3oheme’s picture

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.

troky’s picture

Status: Active » Closed (won't fix)

Closing this since there is no 6.x maintainer.

eric constantinides’s picture

Very cool, thank you!!