1

Safari 不显示本地安装在 Big Sur mac (M1 MacBook air) 上的 Noto Sans 字体。应该有什么问题?

测试html代码如下:

<head>
<style type="text/css">
* { font-family: "Noto Sans"; }
</style>
</head>
<html>
<body>
The quick brown fox jumps over the lazy dog and runs away.
</body>
</html>

奇怪的是:在 Safari 版本 14.0.2 (16610.3.7.1.9) 中,页面以默认衬线字体呈现,而不是 Noto Sans。

在同一台机器上的 Chrome (87.0.4280.88) 中,上面的 html 代码正确显示了 Noto Sans。此外,当上述 html 代码中的“Noto Sans”被替换为一些其他字体(例如“Arial”或“Helvetica”)时,它在 Safari 和 Chrome 中都能正常工作。

Noto Sans 字体是从 Google Fonts https://fonts.google.com/specimen/Noto+Sans下载的,并作为 .otf 文件安装在我的 Mac 上。

仅为当前用户和所有用户安装字体没有任何区别。

如何为 Safari 解决此问题?任何意见将不胜感激!

4

0 回答 0