Thanks for writing and sharing an awesome module! There is a module called Dynamic Render (http://drupal.org/project/render) which aims to be a pluggable module for supporting these types of image replacement features.

There is also an issue in the queue for that project to add Cufon support:

#376372: Add Cufon support
http://drupal.org/node/376372

If possible it would be great to make this module as a plugin for the Dynamic render module. Just a thought... :-)

Comments

davideads’s picture

Status: Active » Closed (fixed)

I meant to comment on this on the project page: There's a strong case for combining with the Dynamic Render module, and I'm aware of the ticket and several other solutions that have been discussed. I'd personally appreciate it because I don't have a ton of bandwidth for doing module maintenance, so contributing back to a larger, more stable project with a few more commiters would be nice for me, personally.

On the other hand, I need Cufon for a project now and didn't want the overhead of trying to conquer Cufon and learn the Dynamic Render module API. Also, I'd argue that it is often better in integration modules like this one to to try and deal with the specific quirks and subtle behaviors of the 3rd party library in question in a standalone module before trying to tie it into (or use it as a model for) a unified framework.

Unless someone says differently, it doesn't seem like there's a big rush here. There's lots of dynamic typeface replacement modules (FLiR, Signwriter, Textimage) and their vitality makes me question the need for unified API: several well crafted special purpose modules might be preferable to a mediocre API. If someone really wants to integrate what's here now with Dynamic Render, then that would be great, but given how minimal this module is to begin with, I don't see how hashing out a solid approach and bringing a high level of polish to the implementation will hurt future opportunities for integration / collaboration. And if you really need sIFR and Cufon on the same site, you can always run the modules side by side.

In a few weeks, I hope to have time to take a look at the Dynamic Render module to assess its quality and the sturdiness of the API and the ease of integration with this module, contact the maintainers, and see if there is a path forward for pushing this work into the Dynamic Render project.