gpt4 book ai didi

css - Arial black 突然无法在 chrome 中使用

转载 作者:技术小花猫 更新时间:2023-10-29 11:22:21 25 4
gpt4 key购买 nike

我今天注意到,我开发的一个网站突然停止在 chrome 中呈现“Arial Black”字体。

有谁知道最近的 Chrome 更新是否会导致“arial black”停止工作?

甚至 w3schools 上的示例在 chrome 中也停止工作:http://www.w3schools.com/cssref/css_websafe_fonts.asp

最佳答案

它默认设置为最新的 Chrome 更新(版本 37.x)(最初在 Chrome 35 beta 上,默认情况下未设置),这就是 Chrome 在 Windows 上使用 DirectWrite API 进行渲染的方式字体。

如果您想要旧行为,请打开 chrome://flags/ 并启用 Disable DirectWrite

这将禁用实验性 DirectWrite 字体渲染系统。

也如 this bug report 中所述:

This all comes from DW treating font weights as different variations of the same font, unlike GDI. Thus Arial Black is considered to be Arial with a weight of 900 and that matches the specified family.

因此,如果“Arial Black”回落到“Arial”且权重为 900,而 Arial 中的权重 900 与 Arial Black 的“权重”不同,那么您将看到渲染字体的差异。

关于css - Arial black 突然无法在 chrome 中使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25690725/

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