-2

これが機能する見込みで、私は実際に自分自身を濡らしています!

.ttf ファイルの場所を設定しましたが、取得できないようです。

場所の設定が間違っていますか?

フォントの説明が間違っていますか?

<!DOCTYPE html>
<html>
<body>

<style>

@font-face
{
font-family: Baskerville;
src: local('J:\Internet\Paul\Baskerville test\IT597___.ttf');
}
p { font-family: baskerville, serif; }
</style>

<h1 class="baskerville">This is written in ITC Baskerville</h1>

<p>Please note, that this is not written in Baskerville, but the word <span class="baskerville">Waterman</span> here is.</p>


<p><a href="http://www.w3.org/TR/css3-fonts/#font-face-rule" target="blank">Read this</a> for the W3C specifications on the "@font face" declaration which I've used to do this.</p>
</body>
</html>
4

1 に答える 1

1

http://www.fontsquirrel.com/tools/webfont-generatorこのジェネレーターを使用して、フォント フェイスを生成します。また、フォントに適した css も提供します。

あなたのコードで見られる間違いの 1 つは、font-family が Baskerville として定義されていて、p に font-family baskerville が含まれていることです (これを大文字にします)。

于 2013-02-22T10:29:03.293 に答える