gpt4 book ai didi

css - chrome 的@font-face 问题

转载 作者:行者123 更新时间:2023-11-28 13:43:59 25 4
gpt4 key购买 nike

我使用了 Museosans500 字体,语法如下

@font-face {
font-family: 'MuseoSans500';
src: url('MuseoSans_500-webfont.eot');
src: url('MuseoSans_500-webfont.eot?iefix') format('eot'),
url('MuseoSans_500-webfont.woff') format('woff'),
url('MuseoSans_500-webfont.ttf') format('truetype'),
url('MuseoSans_500-webfont.svg#webfontkQkWxTED') format('svg');
font-weight: normal;
font-style: normal;
}

它在 Firefox 中运行良好,但在 Chrome 中无法正确显示字体。

最佳答案

我不确定您遇到了什么问题,但是这个网站 http://seanmcb.com/typekit/webkit-antialiasing-test.html给出了一个 webkit 错误的测试用例的一个很好的总结,这可能是你正在经历的。

我在自己的网站上发现了抗锯齿问题,我打算试试伪元素技巧。该网站描述的错误:“在 Mac 上的 Webkit 浏览器中,@font-face 字体会使用先前呈现的文本所使用的任何抗锯齿设置进行呈现。”

接下来,最好看看 webkit 是否有针对此问题的 bug。

关于css - chrome 的@font-face 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6330636/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com