February 23rd, 2010 by

All-In-One Cufon plugin allows you an easy replacement of standard fonts with beautiful catchy fonts.
This plugin implements Simo Kinnunen’s Cufón script, which aspires to become a worthy alternative to sIFR.

Latest version 1.2.0

Download the latest version

Features

  • Easy to use
  • Automatic detection of the uploaded fonts
  • Preview of the uploaded fonts
  • Automatic detection of the fontFamily parameter
  • Option to enable only font you really want to use
  • Code tips

All-In-One Cufon admin panel with code tips, fonts preview and field where you set your font.

TODO

  • Display size of .js file
  • Display one test line with all fonts together

How-to

  • Download plugin from WordPress repository.
  • Unzip and upload it to wp-contentplugins. Or you can go to the admin panel:
    • Plugins –> Add New
    • Type “all-in-one cufon” into the search field.
    • Install.
    • First you have to generate JavaScript file of your .otf, .ttf etc. font file. To generate this you have to go the Cufon generator.
      Make sure the EULA of the font permits web embedding.
  • Create a folder called /cufon-fonts/ in the wp-content/plugins/ directory, where you need to upload your generated font .js files.
  • When you’re done, just go the admin panel: Settings–>All-In-One Cufon
  • There you will instantly see fonts that were detected in your wp-contentpluginscufon-fonts folder.
  • Enable fonts you wish to use.
  • The last step is adding the Cufón code.

Adding Cufon code

Add Cufon code to the Cufon’s code field. Basic code for replacing h2 element looks like this:

Cufon.replace('h2');

For more complex element you can use code like this:

Cufon.replace('#top-menu.menu');

1. Add gradient to the font:

Cufon.replace('.cufon-gradient', {
                	color: '-linear-gradient(red, blue)'
                    });
Cufon can make use of gradients

2. Add shadow to the font:

Cufon.replace('.cufon-shadow', {
                    textShadow: '2px 2px red'
                    });
Cufon can have a shadow, too!

3. Add gradient and shadow to the font:

Cufon.replace('.cufon-gradient-shadow', {
                	color: '-linear-gradient(blue, yellow)',
                        textShadow: '2px 2px #C0C0C0'
                    });
Cufon can even have gradient and shadow together.

4. Add gradient and shadow to a link:

Cufon.replace('a.cufon-gradient-shadow-link', {
                	color: '-linear-gradient(#FF9900, #000000)',
                    textShadow: '2px 2px #C0C0C0',
                    hover: {
		textShadow: '2px 2px #C0C0C0',
		color: '-linear-gradient(#99CC00, #000000)'
	}
                    });

Cufon can apply gradient and shadow to links.

5. Set font, gradient and hover.

Cufon.replace('a.cufon-easy', {
                    fontFamily: 'Sketch Rockwell',
                    color: '-linear-gradient(#FF6600, #33CCCC)',
                    hover: {
            		textShadow: '2px 2px red',
            		color: '-linear-gradient(black, white)'
	}

Cufon is easy to set up.

6. Add gradient, shadow and transparency to a shadow:

Cufon.replace('a.cufon-transparent', {
                	color: '-linear-gradient(#FFFFFF, #99CCFF)',
                    textShadow: '10px 10px rgba(0, 0, 0, 0.3)',
                    hover: {
		textShadow: '10px 10px rgba(0, 0, 0, 0.3)',
		color: '-linear-gradient(#FFFFFF, #969696)'
	}
                    });

CSS code

.cufon-transparent { display: block; font-size: 40px; background: url(images/cufon-bg.jpg) repeat; }

Cufon can work with transparency in links.

You can find much more info on this amazing script on the official Cufón’s pages.
They also have active forum, where you can ask all your questions regarding Cufón.

204 Responses to “All-In-One Cufon”

  1. Guido says:

    Hi there, this plug is exactly what I need.
    The only problem is that even though I made a file cufon-fonts and saved my converted fonts in this file, they are still not detected!! This anybody know how this can happen??
    Thanks in advanced

  2. Mike Miller says:

    best cufon plugin!!! thanks! works perfectly!

  3. zeoz says:

    this plugin is g8 !! :)
    just 1 question …. to add it in search field like here you must add code ? Cufon.replace(‘#s’);

    thnx in advance

  4. haije says:

    Hi, wau, what a great plugin! Thanks so much! I hope you are going to keep it up to date :) . This is so much better than the WP-Cufon.

  5. Jet says:

    Super plugin however what about a blur-radius for the drop shadow css3 effect?

  6. Louise says:

    Hi I really want to use cufon on my site but every time I activate plugin and type the url into address bar it redirects to yahoo. Can you help??

  7. Heather says:

    I love the plug-in! Is it possible to use two different fonts at the same time? If I wanted to do H1 as one font and H2 as a different font, how could I set that up? Thanks!

  8. Tamsberger says:

    Hi, I’m facing with a problem with it. After I switch on plugin an error message occurs: “invalid argument supplied for foreach() in /var/www/…/wp-content/plugins/all-in-one-cufon/wordpress_cufon.phpon line 27 Is there any solution?

  9. Editguy says:

    Your plugin has sure come in handy, but I’ve run into a problem since installed W3 Total Cache. The fonts only seem to appear in Firefox. Safari, Chrome and IE are all missing the Cufon fonts (also not appearing on IOS devices). Any thoughts on how I can clear it up?

    Thanks in advance

  10. miles says:

    I’m not entirely certain that I understand how to use this plug-in.

    1.) I’ve installed the plugin.
    2.) Added my fonts.
    3.) Fonts are displaying from within the plugin page just fine.

    The issue comes when I want to use them.

    Let’s say that I want to modify this line from my wp header.php file.

    <link rel="alternate" type="application/rss+xml" title="<?php printf(__('%s RSS Feed', THEME_NS), get_bloginfo('name')); ?>" href="<?php bloginfo('rss2_url'); ?>" />
    
    and
    
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    

    I want the name to appear in one font and the title appear in another.

    I see that this plugin is CSS driven and that makes things really simple, but where would I make the necessary modifications via my CSS and what would it look like ?

    Yes I see that there’s a provided CUFON window for adding updates. Ok…that’s great. Won’t those updates be GLOBAL to the entire site, which is kinda what you would want with this kind of a plugin, but again, how and where would I just change the name and title of the site to the font that I want ????

    Thanks.

  11. Nick says:

    Hello,
    I’m trying out this plugin and i’m very happy with it. The type looks spot on. I have Shadowbox Js running as well and the cufon type vanishes when this is showing an enlarged image. What could be doing that?

  12. TY says:

    love your plugin the only thing i would want more is if the script would be contained in a js file instead of hard coded (better for cleancode/seo!)

    • @TY: While your comment was roughly 4 months ago, Cufon is still relevant and so I thought I would point out that what you describe is definitely possible; I have my Cufon code in a .js file (all my scripts really), and call it from a separate scripts.php file using the src property.

      If it wouldn’t work that way before, I didn’t mean to say you were wrong. Since I am a new convert to Cufon, I don’t actually know if Cufon only recently added support for this or not.

  13. John LeBlanc says:

    Aloha Tom! I just posted a fix adding SSL support to your All-in-one-Cufon plugin: http://wordpress.org/support/topic/plugin-all-in-one-cufon-ssl-support

  14. Jodi says:

    And I thought I was the ssienble one. Thanks for setting me straight.

  15. Tanima Dutta Cahudhury says:

    Hi,
    Many thanks for the post. It helped me a lot. This is really a clean and easy stuff.

    Thanks again,
    tanima

  16. Sylwia says:

    I posted it in WP forums but perhaps someone here can help me sooner:

    I installed this plugin in my WP Network, and it works great in the main domain and subdomains, but it’s not working on sites that use their own domain. I get this:

    http://awesomescreenshot.com/0a6oayidd

    The plugin recognizes that the fonts exist but doesn’t read them properly, and it doesn’t change the look of the headers in the front-end either. Again, the problem refers to own domains only, it’s all working great on the main domain and its subdomains. I suspect a single line of code could fix it. Any ideas?

  17. ktsixit says:

    Cufon is not working in IE7. Does the plugin supports that? I added jquery and cufon.now() in my website’s but still not working. What should I do? Please help

  18. Steve says:

    Hi,

    I hope you can help!! I have the All in one Cufon plugin installed on a WordPress site I’ve built. The fonts are working in all browsers including IE 9 but when an older version of IE is used or it’s put in compatability mode, the fonts don’t convert to the new font.

    I’m using WordPress 3.2.1

    Plugin Version 1.2.0

    Is this a common problem? Easy to fix?

    Any help would be great!!

    Thanks.

Trackbacks/Pingbacks 12

Leave a Reply