2012-04-18 59 views
0

我希望你能花點時間幫我解決這個問題。我正在嘗試在wordpress主題中整合this font。它工作得很好FF,Chrome和IE。但是我對Opera有問題。最奇怪的是它加載,但看起來像文件格式已損壞。我知道它加載,因爲當頁面加載字體從襯線轉換爲無襯線。@ Font-Face在Opera中不工作

我用fontsquirrel和幾個其他轉換器來創建一個工具包,但似乎沒有一個正常工作。

@font-face { 
    font-family: 'Blanch-Caps'; 
    src: url('<?php bloginfo('stylesheet_directory'); ?>/font/blanchcaps/blanch_caps.eot'); 
    src: url('<?php bloginfo('stylesheet_directory'); ?>/font/blanchcaps/blanch_caps.eot?#iefix') format('embedded-opentype'), 
     url('<?php bloginfo('stylesheet_directory'); ?>/font/blanchcaps/blanch_caps.woff') format('woff'), 
     url('<?php bloginfo('stylesheet_directory'); ?>/font/blanchcaps/blanch_caps.ttf') format('truetype'), 
     url('<?php bloginfo('stylesheet_directory'); ?>/font/blanchcaps/blanch_caps.svg#blanch_caps') format('svg'); 
    font-weight: normal; 
    font-style: normal; 
} 

.title h3 { 
    font-family: 'Blanch-Caps'; 
    text-transform: lowercase; 
} 

再次,除Opera之外,其他所有瀏覽器都能正常工作。 由於Blanch不支持大寫,因此我使用小寫變換。

我將不勝感激任何形式的幫助。

謝謝。

+0

你能證明你的代碼?你在你的css中使用optimizeLegibility嗎?其他問題,我可以很容易地回答一個代碼源 – albert 2012-04-21 01:06:31

+0

+1 - 這將是更容易理解這個問題的鏈接.. – hallvors 2012-07-24 03:52:47

回答

相關問題