【发布时间】:2014-03-15 04:10:43
【问题描述】:
因此,我了解到 Chrome for Windows 上存在导致渲染效果不佳的错误。 Opera也是这样吗?为什么它不适用于 IE?
字体:http://www.google.com/fonts#UsePlace:use/Collection:Libre+Baskerville
嵌入:
wp_enqueue_style('fontbask', 'http://fonts.googleapis.com/css?family=Libre+Baskerville:400,500,700,400italic&subset=latin,latin-ext');
我试过的 CSS
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-stroke: 1px transparent;
结果:
浏览器版本:
歌剧 19.0.1326.63 铬 32.0.1700.107 m Internet Explorer 11.0.9600.16518 火狐26.0
我还尝试使用 font-face 来包含字体,结果完全相同。
@font-face {
font-family: 'LibreBaskerville';
src: url('fonts/LibreBaskerville-Regular.otf') format('truetype');
font-weight: normal;
font-style: normal;
}
我下载了字体@http://www.fontsquirrel.com/fonts/libre-baskerville?q[term]=baskerville&q[search_check]=Y 在这个截图中,它看起来并没有那么糟糕,但你可以在这里看到:http://www.citizen-science.at/wordpress/
我还发现http://www.google.com/fonts#UsePlace:use/Collection:Libre+Baskerville 的字体也被渲染得很糟糕。所以看来是浏览器的问题。
当我使用本地字体而不是 Google 字体时,IE 可以显示它,但 Opera 和 Chrome 仍然不能显示
【问题讨论】:
-
能具体说说opera版本吗?
-
正如@Zeshan Khan Alvi 所说,什么版本的Opera?使用 Presto 引擎的旧版本(不再获取更新)还是使用 Webkit 引擎的新版本 Opera Next?
-
我更新了我的问题
标签: html css wordpress browser google-font-api