I’ve got a fever, and the only prescription is more cowbell.

How to Use sIFR with jQuery to Use Your Own Fonts

Scalable Inman Flash Replacement (sIFR) allows you to use custom typography on your site by using JavaScript, Flash, and CSS. With the jQuery Sifr Plugin, you can easily display dynamic, on-the-fly text using the font(s) of their choice, regardless of the visitor’s currently installed fonts, web browser, or operating system. This plugin provides a very simple configuration process.

Step 1: Download jQuery
Step 2: Download the jQuery sIFR Plugin
Step 3: Include this code in the head tag of your page

<mce:script type="text/javascript" src="path/to/jquery.min.js" mce_src="path/to/jquery.min.js"></mce:script>
<mce:script type="text/javascript" src="path/to/jquery.flash.min.js" mce_src="path/to/jquery.flash.min.js"></mce:script>
<mce:script type="text/javascript" src="path/to/jquery.sifr.js" mce_src="path/to/jquery.sifr.js"></mce:script>
<mce:script type="text/javascript"><!--
  $(document).ready(function(){
    $.sifr({ path: "path/to/resources/", save: true });
    $("h1").sifr({ font: "AvantGarde Bk BT" });
  });
// --></mce:script>

Step 4: Find true type fonts on your computer or download them at 1001freefonts (I’d be interested to hear about other place to download fonts) and convert them using sIFR Generator for sIFR version 2.

Here are some examples of the jQuery sIFR Plugin in use.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

1 Comment to How to Use sIFR with jQuery to Use Your Own Fonts

  1. Cyril's GravatarCyril
    November 25, 2009 at 1:46 pm | Permalink

    This plugin Jquery is the fatest sfir method I know. It's simplethat's why I use it in my projects.

  1. By on August 3, 2009 at 12:23 am
  2. By on August 4, 2009 at 4:18 am
  3. By on December 4, 2009 at 9:11 am

Leave a Reply

You can 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>

Subscribe

Search

You Can Find Me On ...

Categories

RSS Other Articles By Me

  • reCAPTCHA: Blocking Spam and More
    A few months ago, I developed a ColdFusion/Mach-II implementation of the reCAPTCHA API.  This type of CAPTCHA requires the person to enter two words rather than a single sequence of random letters.  In addition to protecting your website from spam, reCAPTCHA helps digitize text books.  They do this by using a mystery word as one of the two words, until there […]
  • Using Friendfeed to Automatically Post Your Blog Entries on Twitter
    Friendfeed is a feed aggregator that groups together updates from twitter, facebook, digg, youtube, your blog and much more.  It can also publish entries from your friendfeed to twitter.  This article shows you how to tap into that twitter publishing feature of friendfeed to automate the posting of your blog entries to twitter.  Watch my screencast to create […]
  • Intense Debate Now on the Sitepro Blog!
    Recently on the Sitepro Blog, we have switched to using an enhanced commenting system called Intense Debate.  Intense Debate provides many features that will supercharge the community, increase comments, and increase pageviews.  Some notable features include commenter profiles, reputation scores, email notifications, reply by email, and facebook integration. […]
  • Sitepro Developers Attend TCCFUG
    Last Thursday, a few Sitepro developers attended the Twin Cities Coldfusion User Group at University of St. Thomas.  We were introduced to the future of Coldfusion, specifically Coldfusion 9.  There was free admission, free food, free shirt, prizes, and an abundance of new Coldfusion features. […]