1
我從TypeKit使用的字體被稱爲「museo」。它似乎並沒有加載或顯示在我的實時網站上。爲什麼我的TypeKit字體不顯示?
我將這兩行我application.html.erb
<script type="text/javascript" src="//use.typekit.net/ayn8han.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
我的CSS:
@font-face {
font-family: "museo",'ProximaNovaRegular',serif;
src: url("<%= font_path('proximanova-regular-webfont.eot') %>");
src: url("<%= font_path('proximanova-regular-webfont.eot') %>") format('embedded-opentype'),
url("<%= font_path('proximanova-regular-webfont.woff') %>") format('woff'),
url("<%= font_path('proximanova-regular-webfont.ttf') %>") format('truetype'),
url("<%= font_path('proximanova-regular-webfont.svg#ProximaNovaRegular') %>") format('svg');
}
@font-face {
font-family: "museo",'ProximaNovaBold', serif;
src: url('<%= font_path('proximanova-bold-webfont.eot') %>');
src: url('<%= font_path('proximanova-bold-webfont.eo') %>t') format('embedded-opentype'),
url('<%= font_path('proximanova-bold-webfont.woff') %>') format('woff'),
url('<%= font_path('proximanova-bold-webfont.ttf') %>') format('truetype'),
url('<%= font_path('proximanova-bold-webfont.svg#ProximaNovaBold') %>') format('svg');
}
什麼我錯在這裏做什麼?