首页 > 解决方案 > Replace font in Asp.net MVC Razor Page

问题描述

Firstly I am new in Asp.net MVC. How to add new font-face in ASP.NET MVC project. In my project contains Arial font, but I want to add Futura LT and I had tried this style but font not replaced by Futura LT it remains the same.
I have .ttf file and I had added to my font folder. is that any other method for include font in the Asp.net MVC project. Thanks in Advance !!!

<style>
 @@font-face { 
font-family: Futura_LT_Book ; 
src: url('/fonts/Futura_LT_Book.ttf') format("truetype");
 } 
</style>

标签: asp.net-mvcrazor

解决方案


将 .ttl 文件添加到您的 asp.net 项目 > 字体文件夹。然后很容易你就可以得到新的风格。你可以看到这个

关联

以供更多参考。


推荐阅读