Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I was half way through creating a Render Plugin but then came across an issue in the font uploading. Cufon fonts are javascript files, but Drupal Core renames JS file uploads since they could be executed and exploit your site. Until we find a way around that I don't think we will be able to proceed.
I was able to get it to work by putting it in a separate directory that was not directly controlled by Drupal. Although Drupal is installed at the docroot, I created a separate /js/ folder alongside it, placed the files there, and voila - Cufon now works.
Comments
Comment #1
aaron commentedexample at http://aaronwinborn.com/blogs/aaron/cuf%C3%B3n-alternative-sifr-image-re...
Comment #2
jdelaune commentedI was half way through creating a Render Plugin but then came across an issue in the font uploading. Cufon fonts are javascript files, but Drupal Core renames JS file uploads since they could be executed and exploit your site. Until we find a way around that I don't think we will be able to proceed.
Comment #3
polAny news on this ?
Maybe we could copy paste the content of the generated file in a textarea ??
Comment #4
polMaybe we can do like FLIR, we upload the JS file in a specified directory like:
sites/defaults/files/cufon/fonts/
What do you think ?
Comment #5
aaron commentedor /plugins, as is being discussed for drupal 7 at #315100: Allow to add JS/CSS libraries (sets of files, settings, and dependent libraries).
Comment #6
sunIf Drupal renames files, we can rename them back.
Comment #7
datafire commented(edit: deleted - double post)
Comment #8
datafire commentedI was able to get it to work by putting it in a separate directory that was not directly controlled by Drupal. Although Drupal is installed at the docroot, I created a separate /js/ folder alongside it, placed the files there, and voila - Cufon now works.
Comment #9
polShow us !
Comment #10
wilgrace commentedhttp://aaronwinborn.com/blogs/aaron/cuf%C3%B3n-alternative-sifr-image-re...
Comment #11
ChrisBryant commentedThere is a new module released for Cufon support here:
http://drupal.org/project/cufon
I posted an issue recommending combining efforts:
#518328: Collaboration / combining with Dynamic Render module?
http://drupal.org/node/518328