【发布时间】:2019-06-06 12:46:45
【问题描述】:
我有一个简单的静态页面,我想导入一个字体。但是在使用 Google Chrome 浏览器的 Windows 上字体显示很奇怪。此字体在其他操作系统和浏览器中正常显示。
我像这样使用@font-face 导入字体:
@font-face {
font-family: NoyhGeometric;
src: url("../fonts/Typesketchbook - Noyh Geometric Regular.ttf") format("truetype"),
url("../fonts/Typesketchbook - NoyhGeometric-Regular.otf") format("opentype");
}
我在两张图片中都使用 Google Chrome 浏览器。
在 Ubuntu 上(正确显示):
在 Windows 上(显示奇怪):
【问题讨论】:
标签: html css fonts font-face font-size