【发布时间】:2017-02-13 23:27:13
【问题描述】:
我已下载Google's "Noto Color Emoji" 字体,但无法使用。我对“Noto Sans Regular”之类的字体没有任何问题。但使用“Noto Color Emoji”字体时,我在 Firefox(在 Windows 10 上)中出现以下错误:
downloadable font: no supported glyph shapes table(s) present (font-family: "NotoColorEmoji" style:normal weight:normal stretch:normal src index:0)
downloadable font: rejected by sanitizer (font-family: "NotoColorEmoji" style:normal weight:normal stretch:normal src index:0)
它也不适用于 Windows 10 上的 Chrome、Internet Explorer 和 Edge 或 Ubuntu Linux 上的 Firefox。
这是我的代码:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
@font-face {
font-family: 'NotoColorEmoji';
src: url('NotoColorEmoji.ttf') format('truetype');
}
</style>
</head>
<body>
<span style="font-family: 'NotoColorEmoji'">Emojis: ????????????????????????????????????????????????</span>
</body>
我做错了什么?表情符号字体的使用方式不同吗?
【问题讨论】:
-
你到底是从哪里得到字体的?你确定它适合网络吗?
-
你只有firefox的问题?赢了,麦克?
-
我从这里得到它:google.com/get/noto/#emoji-zsye-color 我在 Windows 10 上使用 Firefox、Chrome、Internet Explorer 和 Edge 进行了尝试。我还在 Ubuntu Linux 上使用 Firefox 进行了尝试。我不认为操作系统应该是问题,因为我没有尝试安装字体。
标签: html css fonts webfonts emoji