Jump to:
Issue Summary
When Cufón is loaded with or without using this module, something I've noticed is that collapsible fieldsets throughout the Drupal UI are all expanded by default and clicking the toggle produces random results. I've tried calling the replacement in the .info file, calling it in the page.tpl.php header, the body tag, doesn't seem to make a difference.
Also, Views UI seems to be adversely affected by the presense of Cufón as well. I haven't noticed any other examples but something tells me there may more.
My cursory investigation revealed that the cufon-yui.js file contains variable names for every letter of the alphabet. Is it possible that one or more of these simple, one-letter variable names are shared with functions from Drupal core? Or am I shooting from the hip here?
Comments
#1
I actually already wrote a ticket to myself because of this issue. The issue with the yui compression is an interesting one, but I don't think it's the direct culprit. If you load the uncompressed version, the same problem occurs. What I found was that it seems to be this line in
Cufon.replace(...)that's causing the problem:CSS.addClass(DOM.root(), 'cufon-active cufon-loading');.That's as far as I've gotten thus far (though if you want to test it out, switch out cufon-yui.js with cufon.js from a fresh git clone and comment out that line -- it's line 688).
I'll try and patch Cufon itself tonight to see if there is a ready, cross browser solution. I suspect there might be, just haven't had a chance to spend quality time with the Cufon source yet.
#2
I found a fix for this issue. There is a bug in Cufon's CSS engine that overwrites the classes set on the
<html>tag, meaning any CSS rules that depend on the existence of that class don't apply, and other bad things could happen.I tested my fix in Safari, Chrome, IE 7, and IE 8 in Windows, and Firefox 3.0 and 3.5 in Windows and Linux. I was able to see the rendered fonts in all of them.
I've opened a ticket on the Cufon ticket tracker for the issue.
In the meantime, I have set up a Mercurial repository to temporarily distribute the patched version at http://hg.invisibleinstitute.com/cufon_patch/ -- you can also download the compressed version (as of this evening) directly from this page.
I'm providing it this way to ensure compliance with Cufon's licensing terms.
#3
Simo Kinnunen (sorccu) has addressed the issue, which means the Cufon library available at http://cufon.shoqolate.com/js/cufon-yui.js now contains a fix for the bug that was interfering with Drupal.