I always use:
Code:
@font-face {
font-family : 'yourfont';
src : url('fonts/yourfont.eot'); /* IE9 Compat Modes */
src : url('fonts/yourfont.eot?') format('eot'), /* IE6-IE8 */
url('fonts/yourfont.woff') format('woff'), /* Modern Browsers */
url('fonts/yourfont.ttf') format('truetype'), /* Safari, Android, iOS */
url('fonts/yourfont.svg#svgyourfont') format('svg'); /* Legacy iOS */
font-weight : normal;
font-style : normal;
}
and then for example:
Code:
h1 {
font-family : yourfont, sans-serif;
}
This should work in all modern browsers.
You can find a font generator at http://www.fontsquirrel.com/fontface/generator.
Good luck!
Bookmarks