簡體   English   中英

Windows Azure自定義字體

[英]Custom Fonts With Windows Azure

我現在最難過。 我有一個在Visual Studio中看起來很漂亮的應用程序,但是當我發布到Windows Azure的那一刻,自定義字體就沒有顯示出來,並使應用程序看起來很糟糕。 我使用自定義字體和從字體加載的自定義圖標。 Bootstrapv3和其他我用過的。

我做了很多研究,發現很多解決方案都指向同一件事,但是我仍然遇到的問題是我所做的:

無論如何,我確保在Build操作中將所有字體文件都設置為Content,並且仍然沒有解決該問題。

我更新了Web.config,使其包括以下內容:

<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<staticContent>
  <remove fileExtension=".svg" />
  <remove fileExtension=".eot" />
  <remove fileExtension=".woff" />
  <mimeMap fileExtension=".svg" mimeType="image/svg+xml"  />
  <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
  <mimeMap fileExtension=".woff" mimeType="application/x-woff" />
</staticContent>

該網站是AZURE網站鏈接

我仍然不知道如何使自定義字體工作。 如果您查看鏈接,則“登錄Big Daddy Pools”文本實際上是一種自定義字體,但看起來很黑……請幫助我,我已經花了很多天了!

您的CSS文件位於頂部:

/* Minification failed. Returning unminified contents. (2412,1): run-time error CSS1019: Unexpected token, found '@import' (2412,9): run-time error CSS1019: Unexpected token, found 'url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700)' */

您可能需要先解決此問題,因為當我加載上面提供的頁面時,我看不到瀏覽器發出任何網絡請求來請求這些字體文件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM