Search code examples
phpjavascripthtmlcssfont-face

HTML CSS JavaScript Font on Site without use of Image


I know of cufon and one other similar. But what is the best way to use a non web standard font as a font on your site? I have a client who has 2 distinct fonts they want to use as the text through out the site being created but they are not standard fonts for the web. I could do them as images maybe, if they were just navigation use. But they want the whole body up and down to be using these fonts through out.


Solution

  • after some good, some bad times with cufon, i settled using @font-face and enjoy it.

    if your font license allows it, http://www.fontsquirrel.com/fontface/generator is a nice generator for all the needed files + some basic css.