Add Cufon support
aaron - February 18, 2009 - 17:09
| Project: | Dynamic Rendering |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
| Project: | Dynamic Rendering |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
#1
example at http://aaronwinborn.com/blogs/aaron/cuf%C3%B3n-alternative-sifr-image-re...
#2
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.
#3
Any news on this ?
Maybe we could copy paste the content of the generated file in a textarea ??
#4
Maybe we can do like FLIR, we upload the JS file in a specified directory like:
sites/defaults/files/cufon/fonts/
What do you think ?
#5
or /plugins, as is being discussed for drupal 7 at #315100: Allow to add JS/CSS libraries (sets of files, settings, and dependent libraries).
#6
If Drupal renames files, we can rename them back.
#7
(edit: deleted - double post)
#8
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.
#9
Show us !
#10
http://aaronwinborn.com/blogs/aaron/cuf%C3%B3n-alternative-sifr-image-re...
#11
There 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