我尝试添加自定义的字体,有很多麻烦:( 的,这是我的test.html:自定义字体和字体平滑
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
@font-face {
font-family: 'OpenSans';
src: url('OpenSans.eot');
src: url('OpenSans.eot?#iefix') format('embedded-opentype'),
url('OpenSans.woff') format('woff'),
url('OpenSans.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body {
font-size: 14px;
font-family: 'OpenSans';
}
</style>
</head>
<body>
<span>Lorem Ipsum is simply dummy text of the printing and typesetting industry<span>
</body>
</html>
我结果,我有(的Windows XP SP3的ClearType禁用):
我不知道为什么我的戏并不想读取本地目录中该字体。Safari和Chrome未启用字体平滑(我如何理解它依赖于操作系统,我不能修复它而不需要更改操作系统设置)。
2问题:
1)为什么opera不能理解本地路径(如果它部署在http服务器上,它将工作)?
2)如何启用铬和safari的字体平滑?火狐它没有麻烦,也许它可能是其他浏览器(CSS属性字体光滑没有帮助)