SVG字体在Google Chrome中仍然可以使用吗? [英] Are SVG fonts still working in Google Chrome?

查看:127
本文介绍了SVG字体在Google Chrome中仍然可以使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在不停地重新设计网站,但是在过去的6个月里,我一直处于循环状态,可以这么说,并且可能错过了一些与chrome不再兼容的svg字体重要的东西吗?

I have been redesigning a website for a while on and off, but for the last 6 months I've been out of the loop so to speak and may have missed something important regarding svg fonts no longer working with chrome?

这是我的一个样式表的摘录:

Here is a snippet of one of my stylesheets:

@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'NewFont';
src: url("newfont-webfont.svg#NewFont") format("svg");
}}

我已经用WOFF版本替换了SVG,并且字体看起来还可以,但是对于这种特定字体,SVG在chrome中总是看起来更好,但是无论出于何种原因,SVG都不会显示字体,我在哪里我很确定只有几个月前一切都很好.

I've replaced the SVG with my WOFF version and the fonts look just about OK, however the SVG always looked better in chrome for this particular font, however for whatever reason the SVG won't display the fonts, where I'm fairly sure only a few months ago everything was fine.

我做了一些研究,并从以下链接中找到: http://blog.chromium.org/除了早于Windows 7的Windows系统以外,不再支持SVG字体.请注意,尽管该功能在这些系统上有效,但认为已弃用."从版本38开始.

I've done a little research and found from this link: http://blog.chromium.org/ "SVG fonts are no longer supported, except on Windows systems older than Windows 7. Note that while the feature works on those systems, it is considered deprecated." From version 38.

出于某种特殊原因,他们不再支持它们,我的样式表中是否有其他浏览器/平台的需要,您能告诉我吗?

Any particular reason they are no longer supporting them and is there any need for them in my stylesheet for other browsers/platforms can you tell me?

推荐答案

Chrome不再支持SVG字体自Chrome 38起,因为他们认为这是解决字体渲染效果不佳的一种解决方法(就像您所说的SVG版本看起来更好").SVG字体不支持字距调整或连字.还需要注意的是,IE不支持SVG字体,而Firefox从不支持.

Chrome is no longer supporting SVG Fonts as of Chrome 38 because they see it as a workaround for poor font rendering (just like how you said the SVG version 'looks better'). SVG fonts don't support kerning or ligatures. It's also important to note that IE doesn't support SVG fonts and Firefox never will.

您可以在此处了解更多信息:

You can read more about it here:

https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/pYbbUcYvlYY

这篇关于SVG字体在Google Chrome中仍然可以使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆