Thursday 12 May 2011

Load fonts from css


create font.css file and put this code in your css file and load this file in your html page.
@font-face {
font-family: 'QuicksandLight';
src: url('Quicksand_Light-webfont.eot');
src: local('☺'), url('Quicksand_Light-webfont.woff') format('woff'), url('Quicksand_Light-webfont.ttf') format('truetype'), url('Quicksand_Light-webfont.svg#webfont') format('svg');
font-weight: normal;
font-style: normal;
}

[Note]
you need this font (Quicksand_Light-webfont.woff')

No comments:

Post a Comment