DivitoDesign

Everything for the Web Professional

Render Text With Javascript: Typeface.js

Information about the Author:

Name:

URL: http://twitter.com/divitodesign

Description enjoy design, write articles, like typography, love football, keep chilling.

More on: Typography

18 Comments

  1. I’m going to use this. One of the things that always agrivated me when designing websites was not being able to use the fonts I wanted without sacrificing points in SEO. This seems like a much better solution. Keep up the good work.

  2. balaji says:

    very useful!

    javascript always rocks…..

    http://weborbus.com

  3. Yes, I agree, this technique works great! :)

  4. Santhos says:

    Wow stunning solution! I’ll definitely try this out! Big plus is that it’s search engine friendly. Thanks for sharing!

  5. [...] If you want more typography options online, the typeface.js technique is a great solution and a good alternative to FLIR and sIFR3. This tutorial will tell you exactly how to implant typeface.js on your website. View source [...]

  6. [...] divitodesign.com Salva e condividi questo articolo: Queste icone linkano i siti di social bookmarking sui quali i [...]

  7. axiom says:

    Anybody get this to work (or the new version 0.11) with actual heading tags? Like H1, H2, etc? I can only get it to work with divs and spans. (And this is what I am seeing in examples everywhere…)

  8. thanks for this tip, will look into putting this on my site. thanks.

  9. Geezer says:

    THIS IS THE ONE, folks. Hands down the best. FLIR and SIFR are WAY too complicated for non-code crazy humans, plus FLIR makes a giant cache on your server.
    I tried both, and this is a cake-walk, and is easy to tweak.

    to: AXIOM: it works on everything for me, p, h1-6, everything.

    Only problems with this: the number of fonts available, and difficulty finding them.

    dafont.com makes it a lot easier, though: Click on a category (like Cartoon), then go to “More Options” next to the Submit button. In the new fields, check only PUBLIC DOMAIN and FREE (and maybe Shareware?).

    Here’s the ones I found so far that work and look good (IMO):
    Bellerose, Berliner, Gunplay, Heather, Starcraft

    Let’s help each other out and post fonts that we find on here!

    • Thanks Geezer, you’ve put down some great tips there.

      To get to your latest point: I think these fonts are great too (Able to download from Dafont.com and these are in the public domain):
      Geo Sans Light, Clementine Sketch and Rough Typewriter.

      I will do a font on this subject soon though! :)

  10. Geezer says:

    Great, thanks, Stefan.

    And I forgot: even after you do that search refining on dafont.com, some fonts STILL don’t pass through the conversion. So it can be frustrating, for sure.

  11. Geezer says:

    Axiom, I stand corrected. You’re right, it doesn’t seam to work on H tags H1 to H6.
    p, span and div seam to be all it works on. Still worth it, though.

    OK, I did over a clients site using it: http://thecolonelscamp.com/
    Check it out and let me know what you think.

    I did have one problem on the Covert Combative Arts page: For some reason Firefox didn’t put space between some words when I used spans to change text colors inline (see the source code). So I had to put ” ” (an empty span tag) in between to push the letters apart in a couple places.
    Putting in the empty spans didn’t affect IE at all, which is weird….

  12. [...] have been talking about and introducing great CSS typography alternatives like sIFR3, FLIR or Typeface.js. They have given us more typography possibilities and [...]

  13. axiom says:

    Ah, I have found that it does work on H1s, the trick is to add a “font-weight:regular” to your stylesheet. Heading tags are bold by default, and generally, the fonts created by the typeface script are only rendered in a regular weight.

  14. @axiom – Thanks for the fix! I will include it in the article.

  15. [...] have been talking about and introducing great CSS typography alternatives like sIFR3, FLIR or Typeface.js. They have given us more typography possibilities and [...]

  16. Rudiger says:

    It’s strange that H tags aren’t working for some when they’re the only tags that seem to work for me? typeface.js is wonderful in theory but as of version 0.11 it has too many bugs to be used reliably.

Please Respond and Give your Opinion

We use Gravatar to handle our avatars. Get one there!