All-In-One Cufon
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.1.1
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
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-content\plugins\. 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-content\plugins\cufon-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)'
});
2. Add shadow to the font:
Cufon.replace('.cufon-shadow', {
textShadow: '2px 2px red'
});
3. Add gradient and shadow to the font:
Cufon.replace('.cufon-gradient-shadow', {
color: '-linear-gradient(blue, yellow)',
textShadow: '2px 2px #C0C0C0'
});
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)'
}
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.
Did you find this plugin useful?
Please, consider a small donation.
Thank you very much!






Beautiful plugin from the looks of it. My question is this: are the soft shadows under your <> links (at the bottom of the page in blue text) created by Cufon, or are you using something else?
Hi Matt,
no it’s not Cufon. It is CSS3:
a { text-shadow: 1px 1px 1px #fff; }How does this compare to Flir? It sounds easier to implement.
It is not only easier to implement, Cufon can do more things than FLIR. More info on how it actually works you can find here.
Hi –
Could you please explain *how* to create the cufon-fonts directory? I’m completely new at this so I don’t know what I’m doing.
In wordpress i’ve gone to the plugins section on the dashboard – but then what? If I go to edit, and select the cufon plug-in, there’s nowhere to create a new directory.
Can you help? Thanks!
You can create folder on your FTP server with FTP client (Total Commander, FileZilla) or directly in your server’s cPanel.
Hi Tom.
I have a problem with this plugin.
I installed the plugin and I follow all the instructions.
But when I click on the plugin setting, I cannot see the font preview.
Here is the screenshot of my setting page:
http://sugarushfx.com/cufon-setting.jpg
For your info, I’m using WP 2.9
I really really need your help. Hope you can reply ASAP. By the way, thanks for creating such a great plugin!
Regards,
Aini
Hi Aini,
The plugin has just been updated.
I was just about to comment with the same problem, but I tried updating first, as per your comment, and that worked. I’ve tried implementing Cufon on my own in the past, with limited success, but your plugin makes it so quick & easy. Thanks for your great work! This is the second time I use the plugin, and I’m sure I’ll be using it again. My designer sure does love it!
Thank you Amanda!
I’ve successfully installed & used the plugin. It worked!
Thanks Tom! I really appreciate it!
I’m a douche who didn’t read the whole directions! Going to make a .js file from the font right now {hangs head}. I’m usually better than that!
Thank you Tom for the plugin. I installed it and uploaded the jsp font to the specified folder.
I tried to use the example code for h2, but nothing changes on the site.
Here’s a screenshot of the plugin settings http://www.sattvedic.com/wp-content/uploads/2010/03/cufon-screnshot.png
Hi Serge,
The .codeTips class is used only for example purposes. If you want to use cufon for all h2 elements do it like this:
Cufon.replace('h2', { fontFamily: 'Bauhaus Std Light' }Tom, I just pasted your code. Here’s a screenshot http://www.sattvedic.com/wp-content/uploads/2010/03/cufon-screenshot-2.png
I checked on one of my pages with h2 text, nothing changed. Here’s the link to the page. http://www.sattvedic.com/week-1/tuesday-w1
It’s the brown/orange text that starts with “Online orders can be…”
Am I missing something here?
You should take into account that your text is also wrapped in span elements.
I removed span tags and any other styling and left just the h2 tags.
Here’s the result http://www.sattvedic.com/week-1/tuesday-w1
Hi Tom,
I am hoping that your plugin is the answer I’ve been searching for. I have followed your steps, and written this code into the editor
[htm]Cufon.replace(‘art-blockheader’, {
fontFamily: ‘Angelina’; font-weight:bold; font-size:22px;
});
Cufon.replace(‘h1 h2 h3′, {
fontFamily: ‘Candara’; font-weight
});[/html]
‘Since it isn’t working, I’m guessing I’ve done something wrong …
Hi Stephanie,
try to remove font-weight:bold; font-size:22px; font-weight
These should be set in CSS.
I have followed the directions, everything is showing up where it should in the code, and the fonts have not been replaced. How do I check the font EULA? I can’t think of any other reason that they are not showing up. Any other ideas?
Hi Tom
Thanks for the plugin, I’d really like to use it but, obviously, I’m doing something wrong. On my blog I have a h2 header in arial where I want to add drop shadow (actually, I’d like to be able to do it on all my h2 headers but they are also links as well). Here’s my code:
Cufon.replace('h2 a', .cufon-shadow-link', { font.Family: 'Arial', textShadow: '2px 2px black' });Btw, the plugin is installed correctly, I’ve activated the ‘Arial’ font. Could you, please, tell me what I’m doing wrong?
Blog is in Croatian but that shouldn’t be a problem, I hope.
Thank you very much and best wishes.
Zoran
Hi Zoran,
Please check example #5 on this page. It should help.
I did check it, but it didn’t help. I guess I’ll have to live without it
Thank you for your time.
Best wishes,
Zoran
@Serge
try this:
Cufon.replace('h2');Awesome! that worked!
So, why the other code does not work?
Hi Tom..firt at all this plugin looks so cool…
i installed the plugin in my site, but i dont know what i am doing wrong because doesnt work…my wordpress looks like this http://img267.imageshack.us/img267/6580/96846378.png …(I wanna change font of my titles on my site) thanks.
Hi Kami,
You are missing this “)” bracket at the end.
Hi Tom, I have a problem with your plugin: when I upload some fonts, wordpress gives me this error message: “url file-access is disabled in the server configuration”.
I saw it’s not an unusual problem, but it looks like I should call the provider about it. What do you think I should do?
Thanks in advance
Hi Filippo,
Ask your server provider to enable it in the server configuration.
Sorry to bother you again. My provider said it’s dangerous, and it won’t allow it. Is there any way to turn around the problem?
Thank you
No way?
I found the problem , with my theme was “h1″ no “h2″ thank u Tom.
It’s not working for me…
Where do i have to insert this code: Cufon.replace(‘h2′);
In style.css
And how about reading a bit…Whole this page is about how to use the plugin.
You have to insert the code into the “Cufon code” field.
how can you change the font-size , i’ve been trying for a while now
You can change font sizes in CSS.
This worked perfectly! Thanks!
Excellent plugin! Works perfectly — thank you.
I’m just wondering if there is a way to apply different fonts to different elements?
For example one font for h2 and one font for h3? I’m sorry if you’ve already detailed how to do this.
You can do so by using parameter fontFamily.
Check example 5. Set font, gradient and hover on this page or:
Cufon.replace('h2', { fontFamily: 'Bauhaus Std Light' }Tom. Plug-in works great. Thanks.
That said, I’m having two problems, one minor one major.
1. the preview is not working correctly, but the font works on the site. Not too big of a deal, but thought you might want to know
2. I’m using it on an e-commerce site in the headers and nav. Once I got to a secure page (I have an SSL cert., it’s an https page) I get errors about unsecured content. Looking at the code, it appears that the plugin files are not coming from a secure source. Is there a way to change this?
I’ve tried disabling the plugin, and don’t get the error, by the way. You can see the site here:
http://www.rhoost.com/shop/
Add something to your cart, and go to checkout to get to a secure page.
Any guidance would be appreciated.
Hi Ira,
I am afraid I can’t help you much with this problem…
Maybe you can try adding Cufon support manually, without plugin.
Ok, thanks Tom. I will try the manual method.
Awesome plugin! I’m getting my head around it right now.
Is it possible that certain fonts style differently? I’ve gotten the font I’ve uploaded to display, but when I inspect it on the site in firebug, it breaks each word into it’s own element and css styling doesn’t seem to affect it.
Actually, never mind that. I figured it out. You have to:
- Test all CSS in the plugin (firebug won’t style it)
- Remove dashes in the properties so that text-transform becomes textTransform (you show this in your examples)
- Add single quotes to values so that textTransform: uppercase becomes textTransform: ‘uppercase’
Hopefully that helps any other newbies that happen to be reading the comments.
Now for one more request if you’re feeling so kind!
I am not getting any response using certain properties, specifically “textDecoration” and “fontWeight” and I can’t figure out how to style the hover effect. hover: ‘true’ doesn’t seem to change anything.
thanks Tyler!
For styling hover, check example “5. Set font, gradient and hover.” on this page.
Warning: Invalid argument supplied for foreach() in xxxxxxxxx/public_html/wp-content/plugins/all-in-one-cufon/wordpress_cufon.php on line 25
What’s that?
maybe invalid font file was uploaded?
Hi,
this looks like a really good plugin. i agree cufon is way easier to implement and quite feature rich as compared to other font replacement tools out there.
thanks in advance. will use and give further feedback…
When trying to view the plugin page in 3.0 beta 1, I get a “insufficient rights”-error and that’s all. I’ve tried de/re-activating the plugin, but no luck. Any ideas?
I’ve got this error “You do not have sufficient permissions to access this page.”
I got this error too!
I, too, had this error. The problem is the space in the admin menu entry’s name. Open the wordpress_cufon.php file from the plugin directory and look for the line:
add_options_page("All-In-One Cufon", "All-In-One Cufon", 1, "All-In-One Cufon",
"wpcuf_admin");
Here, remove the space from the tokens “All-In-One Cufon” with e.g. a dash and it should work fine.
It’s ok it;s fixed by changing:
“All-In-One Cufon”
to:
“All-In-One-Cufon”
(I’m from Australia so “tokens” is not used over here in our language hehe)
@Thomas Thanks, that works! You only need to change the space to a dash on that second one:
add_options_page("All-In-One Cufon", "All-In-One Cufon", 1, "All-In-One-Cufon", "wpcuf_admin");This is line 139 for me.
Worked an absolute treat for me! Cheers Thomas