63 posts
  • Bought between 100 and 499 items
  • Europe
  • Has been a member for 4-5 years
sticker says

Hi All,

I’m not sure exactly how to achieve this, but can anyone recommend how I can embed a custom font to a new site I am working on so all text will display in the chosen font.

Thanks in advance -

2541 posts
  • United States
  • Attended a Community Meetup
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Has been a member for 5-6 years
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
+4 more
CreatingDrew says

A lot of people choose to use Cufon as a JS font embedding solution. Note it’s only meant to be used on header areas etc and not the entire body/page text :)

242 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United States
ATLChris says

I prefer Cufon, but you can also use sRIF font replacement and use flash instead of javascript.

http://www.sifrgenerator.com/

2429 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Europe
  • Bought between 10 and 49 items
  • Referred between 100 and 199 users
  • Sold between 100 and 1 000 dollars
  • Microlancer Beta Tester
digitalimpact says
Or use @font-face in css.

+1

I really don’t get it why many people use cufon or flash solutions over the simple @font-face… it works in any browser and doesn’t create additional elements like ...

1175 posts
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
mabuc says
Or use @font-face in css.

+1

I really don’t get it why many people use cufon or flash solutions over the simple @font-face… it works in any browser and doesn’t create additional elements like <canvas> ...

and can be used in the entire body/page text. :)

63 posts
  • Bought between 100 and 499 items
  • Europe
  • Has been a member for 4-5 years
sticker says

Thanks so much for the informative replies!

@font-face in css seem the best solution! – thanks…

240 posts
  • Bought between 10 and 49 items
  • Canada
  • Exclusive Author
  • Has been a member for 4-5 years
rarepearldesign says

so basically all latest browsers now support @font-face, I knew IE had it way back but they don’t support TTF fonts do they?

I really don’t like these sIFR and CUFON scripts, I find the text blurry a lot of the times.

2429 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Europe
  • Bought between 10 and 49 items
  • Referred between 100 and 199 users
  • Sold between 100 and 1 000 dollars
  • Microlancer Beta Tester
digitalimpact says
so basically all latest browsers now support @font-face, I knew IE had it way back but they don’t support TTF fonts do they? I really don’t like these sIFR and CUFON scripts, I find the text blurry a lot of the times.

I have no problems with @font-face on : IE6 -8, Firefox, Safari, Chrome. Haven’t tested on Opera yet, but I’m 99.99% sure it handles it well.

And btw, TTF not supported in IE? Hmmm, weird, I did see many articles on the subject, but my Rockwell font in TTF displays perfect :)

@font-face FTW !

63 posts
  • Bought between 100 and 499 items
  • Europe
  • Has been a member for 4-5 years
sticker says

I’m really sorry for the dumb question, but how do I add the @font-face attribute into my site’s code? (via the stylesheet?)

by
by
by
by
by
by