我在我的页面中使用.ttf字体并使用
导入它@font-face
{
font-family:myFont;
src:url(/fonts/myfont.ttf) format('truetype');
}
然后我在某些元素上使用它
p,span
{
font-family:ubuntu;
}
除了Firefox之外,该字体在所有浏览器(甚至是IE)上运行良好。奇怪的是,在我更新之前,它有问题(剪裁/破坏)。
这些是控制台“css”部分中出现的错误
downloadable font: GPOS: glyph id 4144 too high >= 253
downloadable font: GPOS: Failed to parse pair set table 26
downloadable font: GPOS: Failed to parse pair pos format 1
downloadable font: Layout: Failed to parse lookup subtable 1
downloadable font: Layout: Failed to parse subtable 0
downloadable font: Layout: Failed to parse lookup 1
downloadable font: GPOS: Failed to parse lookup list table
downloadable font: rejected by sanitizer