2017-07-16 100 views
0

Its a screenshot of the visual studio page如何在web窗體visual studio 2017中添加自定義字體?

我在盡我所能地添加新的自定義字體我試圖添加字體n資源文件夾和字體文件夾,但沒有成功。

<style type="text/css"> 
    @font-face{ 
     font-family:"zekton rg"; 
     src: url(zekton rg.ttf); 
    } 

    .auto-style1 { 
     width: 100%; 
    } 
    .auto-style2 { 
     text-align: center; 
    } 
    .auto-style3 { 
     text-align: center; 
     height: 33px; 
    } 
    .auto-style4 { 
     height: 33px; 
    } 
    .auto-style5 { 
     height: 39px; 
    } 
    #Reset1 { 
     text-align: left; 
     height: 35px; 
     width: 72px; 
    } 
</style> 

請幫助....

回答

0

這可能是因爲你的字體已經沒有尚未安裝。

雙擊.ttf文件。 單擊左上角的「安裝」按鈕。 安裝字體並重試。

希望它能幫助!

+0

我有雙次點擊並安裝在字體文件夾,但仍問題仍然存在 –

+0

您是否嘗試過解壓或再次下載文件?如果它的損壞。 –

+0

是的,但問題仍然存在......你能告訴我這是什麼意思,確保安裝文件類型爲.ttf的應用程序? –

0

<link href="https://fonts.googleapis.com/css?family=your font name:300,400,400i,600,700,800" rel="stylesheet">

在你的腦袋標籤

及以下的身體標記線

<body style="font-family: same font name as in url;"> 
+0

謝謝,但我已經來到了使用@ font-face的解決方案 –

相關問題