Cufon Font Replacement [How to]

cufon

Font replacement on a Web Page is very popular now in days, every developer customizes the title or heading of the blog with some specific font. Cufòn font replacement is the easiest way to perform font replacement without any software.

What is Cufon?

Cufòn is a “fast text replacement with canvas and VML”. It is worthy alternative to sIFR, which despite its merits still remains painfully tricks to set up and use.

How Cufon work?

how cufon works

Cufòn consists of two individual parts – a font generator, which converts fonts to a proprietary format and a rendering engine written in JavaScript.

Browser Support:

  • Internet Explorer 6,7,8 and 9
  • Mozilla Firefox 1.5+
  • Safari 3+
  • Google Chrome 1.0+
  • Opera 9.5+
  • iOS 2.0+

Here’s how to use Cufòn to render the font to amaze all your readers.

Step 1: Download the Cufon

The first thing you need is to download the Cufòn javascript file from http://cufon.shoqolate.com/generate/ and right click the “Download” tab – choose “Save Link as..” and save cufon-yui.js and upload to your own server.

cufon font replacement

Step 2: Generate Font

Use the font converter on the website, choose the font file you want to convert and click “Let’s do this” on bottom of the page.

Leave the rest of the entry as a default. You don’t have to modify them.

cufon font replacement

Step 3: Insert Code

All you need to do this embed all JavaScript files in the head section of your HTML.

[sourcecode language='js']


[/sourcecode]

Step 4: Specify your Element

[sourcecode language='js']

Cufon.replace(‘h1′);

[/sourcecode]

See the Demo of Cufon Font Replacement. If you have any problem comment below.

razzil demo


Must Read

I’m a Founder of Razzil, Web 2.0 enthusiast, Developer, Coder and love the Internet. I am innovator mind and love to do creative work. Follow me on Twitter and Facebook


Must Read

3 Comments

  1. Aha.. now this is what Eleganthemes are using! :D

  2. KAPIL @ tumpbr /

    Using too many cufon may cuase page slowing down…as the case is with your this article using too many cufons. It is meant for less no. of headings not so many as you got

Trackbacks/Pingbacks

  1. Tweets that mention Cufon Font Replacement [How to] -- Topsy.com - [...] This post was mentioned on Twitter by Raza Rahil Hussain, Raza Rahil Hussain, razzil.com and others. razzil.com said: #Cufon ...

Leave a Comment

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>