With other Fusion themes I can use the Drupal Cufon module on #site-name and it works fine. With this theme the custom font flashes but then disappears.

Should this work or is it not going to be possible?

Comments

jeremycaldwell’s picture

Cufon should work for the site name even though it's wrapped in a span and a link. I got it working locally with this bit of code in my custom script file for Cufon.

if (Drupal.jsEnabled) {
  $(document).ready(function() {
    Cufon.replace('#site-name-wrapper #site-name');
  });
}

That targets the site name wrapper and just the site name in there. Give that a try and let us know if it works for you too.

butler360’s picture

I will give it a try, but is there a way to make it work with the Cufon module GUI? I was targeting #site-name and it would work, but, like I said, only for a second.

jeremycaldwell’s picture

Sorry I've never used a GUI for Cufon so not sure what you are referring to.

And you can easily generate your Cufon font files here: http://cufon.shoqolate.com/generate

butler360’s picture

I'm sorry, I shouldn't have assumed you'd know about the Drupal module: http://drupal.org/project/cufon

jeremycaldwell’s picture

Status: Active » Fixed

Sometimes you will see the flash of unstyled text (FOUT) and then it renders correctly. This is due to the slow loading of the Javascript and any other script on your site that loads to change the default font style to something else (Cufon).

You can try enabling CSS and JS compression on your Performance page but other than that you may need to do a bit of research to increase the site loading time as it can also be an issue with the speed of your webserver.

butler360’s picture

Well like I said, it works fine on other bits of text on the site, just not #site-name. And it's not a flash of unstyled text, it's a flash of styled text that goes back to unstyled.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

butler360’s picture

Status: Closed (fixed) » Active

I'm going to put this back to active since I don't think you understood the problem exactly.

jeremycaldwell’s picture

Sorry, not sure about this one. Maybe someone else has an idea?

goody815’s picture

Status: Active » Closed (works as designed)

i'm going to close this as there has not been an activity since Nov 2010. If you need to re-open this please post a link to your site with this issue.