-1

我已经通过@font-face 嵌入了带有 CSS 的 Yakov 细字体,但是这些字体与原来的字体有很大的不同。这可能是什么原因?这是我的代码

@font-face 
{
    font-family:'Yakovthin';
    src: url('../fonts/yakovthin-webfont.eot');
    src: url('../fonts/yakovthin-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/yakovthin-webfont.woff') format('woff'),
         url('../fonts/yakovthin-webfont.ttf') format('truetype'),
         url('../fonts/yakovthin-webfont.svg#') format('svg');
}

div#mainContainer
{
   font-family:'Yakovthin';
   font-size:12px;
}

有人可以帮忙吗?

4

3 回答 3

0

你能提供一个网址吗?另外,尝试在您的代码中添加 font-weight: normal :

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

div#mainContainer
{
   font-family:'Yakovthin';
   font-size:12px;
   font-weight: normal;
}
于 2012-04-25T20:35:29.387 回答
0

你应该试试这个:

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

我很确定你可以放弃 .eot 格式,因为当不支持 .ttf 时, .woff 是,所以它应该可以解决问题。如果您想处理希伯来语,您还应该了解“ unicode-range ”选项。

于 2012-04-27T18:26:08.017 回答
0

I have solved the issue. The problem was that the site the fonts were not generalized properly.

于 2012-04-30T20:15:00.603 回答