Download & Extend

CSS Effects ( textShadow, -linear-gradient, etc. )

Project:Cufón
Version:6.x-1.0-beta4
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:patch (to be ported)

Issue Summary

Its great that Cufon is equip with the abilities to add css text effects such as textShadow, but they need to be called when calling cufon.replace(). I added a function that allows you to use these kind of effects in this module, and rolled a patch for it. To use it now, you can write selectors with CSS style syntax on it's settings page like so:

h2 { color:-linear-gradient(#777, #000); }

or even...
h2 {
  textShadow:0 1px #fff;
  color:-linear-gradient(#777, #000);
}

I've tested syntax and browser capabilities pretty thoroughly.
AttachmentSize
cufon.patch1.37 KB

Comments

#1

Here is the .module file in case you don't want to try the patch:

AttachmentSize
cufon.module.txt 4.05 KB

#3

Tried this out and worked perfectly. Thank you!