Problem: I want use really cool typography on my website! i am tired of Georgia, Arial and all the other “web safe” malarkey. I want something nice!
Solution: User the font-face rule in CSS3!
so what do you need to do that?
there are several ways and even on-line services that will help you with that. I think the most robust way of achieving this is still to hold and serve the font file yourself. You should get the font file from somewhere.
You can find loads of them here at http://www.fontsquirrel.com/ . Then you should stick it in a folder of your website lets say “fonts”. That’s it now you are serving a font-file, hooray. The next step is to actually declare it on your style sheet. It should be one of the top declarations and it would look something like this:
@font-face{
font-family:"superNiceFont";
src: url("fonts/supernicefont.ttf");
format: ("truetypefont");
}
now you can set the font using the usual way something like
p{
font-family:"superNiceFont", Arial;
}
and there you go job done 🙂