2010-02-19 99 views
0

下面的@ font-face聲明很完善的Firefox(蘋果),但Safari瀏覽器/ WebKit的:@ font-face聲明適用於Firefox,但不適用於Safari/WebKit?

@font-face { 
font-family:MyGaramond; 
src:local("Garamond Premier Pro"), /* Full name */ 
    local("GaramondPremrPro"), /* Postscript name */ 
    url("GaramondPremrPro.otf") format("opentype"); /* Fallback */ 
} 

h2 { 
font-family:MyGaramond, sans-serif !important; 
} 

爲了澄清,我也試着:

@font-face { 
font-family:MyGaramond; 
src:local("Garamond Premier Pro"), /* Full name */ 
    local("GaramondPremrPro"), /* Postscript name */ 
    url("GaramondPremrPro.otf"); /* Fallback */ 
} 

h2 { 
font-family:MyGaramond, sans-serif !important; 
} 

,有/無報價等

有沒有其他人經歷過,如果是的話,你是如何解決它?這不起作用真是莫名其妙(而且有點刺激......)。

+0

這裏試過頂部代碼快速簡單的html的我做了,它在Sarafi 4.0.4 Windows下效果不錯。 – 2010-02-19 21:17:27

回答

0

我認爲webkit仍然有opentype的一些問題。歌劇如何處理它?

+0

歌劇也很好。 – Michael 2010-02-19 21:16:34

+0

沒關係。不知道是什麼問題,但我用TrueType Pro從OpenType轉換爲OpenType,現在它工作正常。也許這是一個格式不正確的文件。 – Michael 2010-02-20 03:47:03

相關問題