我已经下载了谷歌的"Noto Color Emoji"字体,但无法使用。我对"Noto Sans Regular"等字体没有问题,但是在Firefox(Windows 10上)中使用"Noto Color Emoji"字体时出现以下错误:
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>
我做错了什么?使用表情符号字体的方式不同吗?