2012-03-28 76 views
-2

我通过堆栈溢出搜索,但未能找到解决方案,我面临的问题...我相信很多人也面临同样的问题,但我不知道为什么他们的解决方案可以'在我的工作。铬字体问题

问题: 这是关于@ font-face的。

的CSS代码:

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

} 

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

} 

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

} 



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

} 

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

} 

有谁知道如何使这项工作,为谷歌浏览器,让我的字体才能生效?

+0

你甚至没有提到你的问题是什么。 – 2012-04-01 23:07:42

+0

@ MahmoudAl-Qudsi我将代码更新到coorect,以便其他人可以采取措施,如果面对同样的问题...问题在代码块下面陈述... :) – Hubert 2012-04-02 00:44:36

回答

0

你所做的只是设置你的字体,以便它们可以在你的css文件中使用。您需要将字体应用于您想要设计的任何文本。您可以像使用其他网页安全字体时那样执行此操作。

例如。

.yourElement { 
    font: 30px JaguarJCBold; 
}