我定义了以下@font-face
规则:
@font-face {
font-family: "MyFont";
src: url(MyFont.eot);
src: url(MyFont.eot#iefix) format('embedded-opentype'),
url(MyFont.ttf) format('truetype'),
url(MyFont.woff) format('woff');
}
由于woff
字体文件中有一些错误,我已经修复了它,我需要测试字体现在是否正确。
问题是谷歌浏览器ttf
默认使用,我无法@font-face
在运行时修改 - 由于复杂的管道,我也无法修改服务器上的 CSS。
我们可以以某种方式强制浏览器使用特定的字体文件类型吗?