2014-03-28 73 views
0

網址是http://arethebaronsplaying.com/字體將不會呈現在IE

如果有人能解決這個問題對我來說,我會提供一些值得他們認真......。

我無法讓我的字體在我的Rails應用程序中在IE 10或11中呈現。我在IE中收到以下錯誤:

"CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable." 

我不在乎10點以前。我已經嘗試了所有人已經提出的建議。

我用的字體松鼠字體生成,我添加了一個'的.htaccess'文件到我的根與它內部的以下內容:

Header set Access-Control-Allow-Origin "*" 

我已經添加了元標記來<head>

<meta http-equiv="X-UA-Compatible" content="IE=10"> 

我被卡住了。這是我的CSS:

@font-face { 
    font-family: 'hamilton20'; 
    src: asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-720-webfont.eot'); 
    src: asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-720-webfont.eot?#iefix') format('embedded-opentype'), 
    asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-720-webfont.woff') format('woff'), 
    asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-720-webfont.ttf') format('truetype'), 
    asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-720-webfont.svg#MonoSocialIconsFont') format('svg'); 
    src: asset_url('fonts/hamilton_wood_type_foundry_-_hwtunitgothic-720-webfont.ttf') format('truetype'); 
    font-weight: normal; 
    font-style: normal; 
} 

蘇格蘭威士忌,有人嗎?

+0

我想你可能需要將字體移動到CSS所在的同一個文件夾中。我必須在我正在處理的網站上做到這一點。 – Howli

+0

您是否獲得了嵌入字體的正確許可? – Alohci

+1

@howlin'字體'目錄位於存儲CSS的stylesheets目錄中。 – reknirt

回答

1

我發現一個漂亮的程序,可以從命令提示符下運行,以糾正IE9中的這個錯誤。然而,請注意,正如發佈商的下載頁面所述:

更改嵌入值不會授予您分發字體的許可證。如果你是字體創建者,或者類似的東西,你只應該改變這個設置。使用風險自負。

embed

你需要一個32位的Windows對話框(即化石)來運行程序。我有權訪問一個。如果你想嘗試,我可以爲你做。

您應該聯繫p22並詢問他們如何解決權限問題。

+0

我想你嘗試解決它。我真的很感激。我與p22交談過,他們沒有告訴我如何解決權限問題,但是我有一份書面許可證,允許我使用該網站在網站上查看。我可以通過電子郵件發送字體文件嗎 – reknirt

+1

給我發一封電子郵件給gmail dot com的andreaslyngstad。我會放棄它。 –

+0

已發送。非常感謝。 – reknirt