asp.net-mvc - 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>
解决方案
推荐阅读
- ios - 如何使用 fastlane 更新过期的证书?
- svg - FontForge:将字体的单个字形批量导出到 svg 文件中?
- google-sheets - 当查询中有 sum 函数时,如何对查询结果(列交换)重新排序?
- python - python和serialreadline之间的字符串比较
- php - PHP 总是返回相同的 IP
- c++ - 具有任何非类型参数的 C++ 模板特化
- java - 如何从 Google Datastore 获取最新实体?
- java - 使用给定的一组数字对给定数字求和的所有可能组合
- python - 如何使用 Python 子进程将字符串写入文件
- matlab - 根据百分比更改直方图的背景颜色