Webフォントやローカルにあるフォントファイルを使ってテキストを表示したいときは、以下のような書き方になる。 @font-face { font-family: 'MyFont'; src: url(/location/of/font/myfont.ttf); } body { font-family: MyFont; } @font-face { font-family: 'MyFont'; src: url('webfont.eot'); /* IE9 Compat Modes */ src: local('myfont Regular'), /* フォントがローカルにインストールされている場合に有効 */ url('webfont.eot?#iefix') format('embedded-opentype'), /* eof - IE6-IE8 */ url('webfont.wo
![【css】Webフォント、ローカルフォントの指定方法 at softelメモ](https://cdn-ak-scissors.b.st-hatena.com/image/square/1547f4b97eb50bd09e99d5f897a6c447ee41f867/height=288;version=1;width=512/https%3A%2F%2Fwww.softel.co.jp%2Fblogs%2Ftech%2Ffb.png)