0

font-squirrelを使用してWebフォントを生成し、フォントのCSS宣言を指定しましたが、IE7またはIE8ブラウザーとドキュメントモードを使用してIE9でページを表示すると、フォールバックフォントが使用されます。何が起こっているのか分かりますか?これが私のコード(およびスクリーンショット)です:

@font-face {
    font-family: 'cubanoregular';
    src: url('../fonts/cubano/cubano/../fonts/cubano/cubano-regular-webfont.woff-webfont.eot');
    src: url('../fonts/cubano/cubano-regular-webfont.woff-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/cubano/cubano-regular-webfont.woff-webfont.woff') format('woff'),
        url('../fonts/cubano/cubano-regular-webfont.woff-webfont.ttf') format('truetype'),
        url('../fonts/cubano/cubano-regular-webfont.woff-webfont.svg#../fonts/cubano/cubanoregular') format('svg');
    font-weight: normal;
    font-style: normal;
}


.cubano { font-family: 'cubanoregular' }

ここに画像の説明を入力してください

4

3 に答える 3

2

上記のコードが正確である場合、唯一の問題はeotファイルへのパスが正しくないことです。

src: url('../fonts/cubano/cubano/../fonts/cubano/cubano-regular-webfont.woff-webfont.eot');...

それを修正すれば、うまくいくはずです。IEは@font-faceバージョン5からサポートされていると思いますが、9より前のバージョンではeotのみがサポートされています。

于 2012-11-07T19:21:39.817 に答える
0

コードに問題はありません。問題はフォントにあるようです。ただし、必要に応じてTypekitにあります。

于 2012-11-07T19:02:11.053 に答える
0

srcパスが正しいことを確認してください

src: url('../fonts/cubano/cubano/../fonts/cubano/cubano-regular-webfont.woff-webfont.eot');
    src: url('../fonts/cubano/cubano-regular-webfont.woff-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/cubano/cubano-regular-webfont.woff-webfont.woff') format('woff'),
        url('../fonts/cubano/cubano-regular-webfont.woff-webfont.ttf') format('truetype'),
        url('../fonts/cubano/cubano-regular-webfont.woff-webfont.svg#../fonts/cubano/cubanoregular') format('svg');

おそらくする必要があります

src: url('../fonts/cubano/cubano-regular-webfont.woff-webfont.eot');
src: url('../fonts/cubano/cubano-regular-webfont.woff-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/cubano/cubano-regular-webfont.woff-webfont.woff') format('woff'),
    url('../fonts/cubano/cubano-regular-webfont.woff-webfont.ttf') format('truetype'),
    url('../fonts/cubano/cubano-regular-webfont.woff-webfont.svg#../fonts/cubano/cubanoregular') format('svg');
于 2012-11-07T19:21:14.463 に答える