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.0.3
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
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.


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!
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.
Hey Tom -
When my site loads it shows a default font for 1-3 sec then shows Cufon – cufon is not supposed to do this!
new.orossaddlery.com
hi, I really want to make this plugin work for me. I am using it for a website which is on an Ancient Script. Instead of asking my users to download a font I created to display the unicode characters, I will just use your plugin. However, this error returned when i activated it:
Warning: Invalid argument supplied for foreach() in /home/oedph/domains/banyuhay.co.cc/public_html/wp-content/plugins/all-in-one-cufon/wordpress_cufon.php on line 25
and then when i try to access the setting page, it says that i do not have permission to access the page, although I am the admin of the site.
Hello Tom,
I installed the plugin. It works great. I notice that it looks like each word and element in the title is a separate entity. I use the italic ampersand in FFScala because it looks cool. How can I italicize just the ampersand and keep the rest in regular?
http://crowandrose.com
Thanks, Dave
The first your font must support italics. The text you want to make italic must be wrapped inside tags.
is there a way to decrease the delays from creating the cufon effect
Hey! This is great and working awesome in FF, but I can’t get it to show up for my navbar font in IE. Can you take a look?
http://www.sourapplestudio.net/client6
Also the hover color for the nav bar is set to black and that doesn’t work in FF once the custom font is replaced. My main concern is IE though.
hey there,
this looks like great work but i cannot get it to work at all. I have tried all combinations of cufon code. The fonts I want to use are visible and enabled.
I think its one or both of two general issues. Can you let me know any known conflicts or things I am missing?
Possible issues:
1. it could be jquery or other javascripts interferring or have conflicts… or the order of loading of said scripts. where does this plugin insert the script include?
The scripts I am using in order of instantiation:
jquery-1.4.1.min.js
jquery.inputs.js
jquery.mousewheel.js
jquery.easing.1.3.js
jquery.lightbox-0.5.js
swfobject.js
functions.js
Alternatively,
2. It may be that my css is somehow overriding this? its instantiation is before javascript.
When using firefox’s web developer toolbar and lookign at the css selector’s style it gives this curious reading of styles for a selector like:
html > body > div .container > div .header > div #top-menu > h2
but the css reads:
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td (line 5)
{
margin-top: 0pt;
margin-right: 0pt;
margin-bottom: 0pt;
margin-left: 0pt;
padding-top: 0pt;
padding-right: 0pt;
padding-bottom: 0pt;
padding-left: 0pt;
border-top-width: 0pt;
border-right-width-value: 0pt;
border-right-width-ltr-source: physical;
border-right-width-rtl-source: physical;
border-bottom-width: 0pt;
border-left-width-value: 0pt;
border-left-width-ltr-source: physical;
border-left-width-rtl-source: physical;
border-top-style: none;
border-right-style-value: none;
border-right-style-ltr-source: physical;
border-right-style-rtl-source: physical;
border-bottom-style: none;
border-left-style-value: none;
border-left-style-ltr-source: physical;
border-left-style-rtl-source: physical;
border-top-color: -moz-use-text-color;
border-right-color-value: -moz-use-text-color;
border-right-color-ltr-source: physical;
border-right-color-rtl-source: physical;
border-bottom-color: -moz-use-text-color;
border-left-color-value: -moz-use-text-color;
border-left-color-ltr-source: physical;
border-left-color-rtl-source: physical;
outline-width: 0pt;
outline-style: none;
outline-color: -moz-use-text-color;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
Could the culprit be something in this overriding css from the actual file:
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, /*strong,*/ sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
Anyways, I figure if I am having the issue, someone else is too or Tom may have some insight.
Thanks
hi just want to say i did get it working myself. Seemed like it was an issue with the template i was using. i just started a new template and reapplied my css and it worked. thanks for the great contribution. for other users i reccomend checking out the issue of instantiation conflicts with order of javascripts. shuffle them around and it might help.
cheers.
- aleks
Just a quick shout out, thanks for the plugin, I’d tried a different cufon plugin and tried to get it to work for a while, yours worked first time!
Hi,
Overall the plugin is great and simple to use, but I’m having a issue with FF on my work-in-progress site (powered by Thematic) on the blog page http://jda.mediostudio.pl/index.php/nowosci/ I get “An invalid or illegal string was specified” code: “12″ error in cufon-yui.js line 7. other pages work just fine… and I do not have a slightest idea what is causing it.
(And of course it works when I don’t need it to… just my luck.)
Wanted to thank you again for this excellent plugin, and also to make a suggestion. I always see a flash of unstyled content (FOUC) in all versions of IE when using Cufon, even when adding Cufon.now to the footer. Could you perhaps incorporate this fix (or something similar) into the next version of the plugin?
Thanks for suggestion Amanda! I will look into it later when I have more spare time.
Sorry for the multiple comments. I just saw a better fix, that’s (sortof) already built into Cufon. It applies a “cufon-loading” class to Cufon-styled elements, and that class gets removed when it’s finished rendering, so embedding some CSS similar to this would work:
.cufon-loading #header, .cufon-loading #nav, .cufon-loading h1 { visibility: hidden !important; }I’m not very good at php, so I dunno how you’d gather up the styled elements from the user-inputed Cufon code, but if it can be done, that’d make this plugin even more awesome!
Sorry again, feel free to delete/merge my comments if you’d like. I just realized that it wouldn’t have to be separate for each element, an overall style for just .cufon-loading would work.
.cufon-loading { visibility: hidden !important; }Thanks for useful tip Amanda!
First: awesome plugin.
Second: Amanda- You rock! I didn’t realize you could do that to fix the flicker of unstyled elements. So simple and works perfectly.
I am trying to use all-in-one-cufon to replace anyfont which is giving me all kinds of errors and it is mostly working fantastically well but I have a problem getting it to render the category title in my archive pages. My template has this php] [/php] and I have wrapped it in
and then used this
Cufon.replace('.archivetitle h1', { fontFamily: 'print', fontSize: '28', color: '#384C92'});in the settings. Can anyone tell me what I am doing wrong?
Thanks for a great plugin and for everyone’s useful tips
oops! didn’t get the wrappers right around my template tag, sorry. It is
Hi Tom, thanks for the plugin, i am a complete n00b and desperately need help! I want to replace all of the fonts on the site so i am using the following:
[/css]Cufon.replace(‘h1,h2,h3,h4,h5,h6,.heading’,{ fontFamily: ‘meta’ }); [css]but it is just not working, i have attached a screenshot, any help would be greatly appreciated. Thanks
http://www.cwcorpcomms.co.uk/wp/wp-content/themes/display/help.png
Hi,
Try to delete yui.js file from the folder with fonts.
Hi Tom, thanks for the help, i’m after some more now! I cannot get the hover states to work on the menu items at the top of my website: http://www.cwcorpcomms.co.uk/wp/ i am using the following code in the plugin code section:
Cufon.replace('ul,ol,h1,h2,h3,h4,h5,h6,form,li,pp'), { fontFamily: 'meta' }Hi Tom,
Many thanks for this plugin. I’ve got it working but have only just begun using it but so far so good!
Out of curiosity, can you add for example a white border around text via the Cufon.replace function? I tried it but using CSS for example, something like:
Cufon.replace(h2, { border: ‘1px sold #ffffff’ }); but that didn’t work. I’m sure I’m either not doing it right or the border style isn’t workable.
Do you think this is possible?
Cheers
Hi – I’ve installed the plugin, but when I click settings it says I don’t have sufficient privileges to access the file?
Hey Tom! Awesome plug-in my friend. All is working very well, except that it does not seem that cufon is being recognized by IE7.
A shame so many people use that hunk of trash, but if you have any idea how to get IE7 to recognize Cufon, I’d sure appreciate it!
Hi Tyler,
Regarding IE7 try to load jQuery to make it work.
However I want to re-write the plugin fully within 1 month.
Fabulous!! Took me a little while to realise what I was doing wrong (didn’t click ’save’ after enabling the font. Doh!) but it’s working well now.
Hello Tom,
Thank you so much for giving us this great plugin.
I have just spent several hours trying to make it work and failed miserably
I can not get the FONT FAMILY and PREVIEW to appear in the plugin settings.
Screenshot:
http://crucialxtimes.com/xdx/wp-content/plugins/cufon-fonts/cufon-help.jpg
I suppose the problem lies somewhere along the font generation process? I tried several different fonts, I also reistalled the plugin several times (from Wordpress auto install and directly uploading files to the FTP) and still can’t get it to work. What am I missing?
Thank you for any help!
[...] All in One Cufon – makkelijk fonts vervangen op je blog [...]
Hi,
I was able to get your plugin to mostly work. The only part that doesn’t work is my sub-menus in IE8. In IE 7 and Firefox the sub-menus are fine and the text is generated. In IE 8 the text is blank. Any ideas? site: http://www.nddar.org.
Thanks
This doesn’t seem to be working in IE8. Any suggestions? Look sfine in other browsers.
Thanks!
I have an issue with using cufon – not only your plug-in, but every plug-in that tries to implement cufon. It’s clearly got to do with the theme I’m using and javascript.
Does anyone know how to make a workaround, I really don’t want to change theme, Thanks !!
Hello Tom,
thanks for the plugin, easy and well done. I’ve managed to make everything work by reading guides and your replies to comments.
There’s no way I can live without it, thanks again!
Hi Tom,
Great plugin – thanks.
For some reason it is not showing a preview (nor is it replacing the titles) on the dashboard. I am running the latest version of the plugin as well as WP 2.9.2. Any ideas?
[...] have also made use of a few new plug-ins, my favorite of which being the All-In-One-Cufon plug-in that turns all of my headings2 into images utilizing javascript. It seems to beat all of [...]
Tom,
Thanks for this; I’m a huge fan of cufon and have been using it my designs for the last couple months, but I’ve been looking all over for an easy explanation on creating a text shadow while using cufon. Thank you so much for breaking this down very simply and providing a simple, working solution!
Your site design is rockin’; the word “inspiring” would be an understatement. I just bought Thesis and am starting to develop with it.
I’m interested to know how much you charge for PSD to thesis conversion, and if you’re familiar with buddypress / wpmu and can basically put together all of the code for a community site that’s been created in photoshop; I’m working with a number of loan modification, debt settlement, and mortgage companies that all want their own community sites and right now can only tackle 1 project / month. I really like thesis and think these clients would really appreciate it and benefit from it!
If you could let me know pricing / availability for something more in depth than basic psd to thesis (e.g. community site) that would be awesome! Looking forward to hearing back from you – Justin