事前にフォントファイルは用意しておく。
用意するものはeot形式、woff形式、ttf形式の3種類。
IE8以前を無視ならeotはいらないかも。
@font-face {
font-family: 'webfont';
src: url('font/supercell-magic.eot?') format('oldIE'),
url('font/supercell-magic.woff') format('woff'),
url('font/supercell-magic.ttf') format('truetype');
}
html {
font-family:'webfont';
fontsize:120%;
margin:0;
}
ちなみに
フォントの指定が間違っててもクライアント側が該当フォントを保持している場合は表示される、かも。