SIFR 的替代方案
我想知道 SIFR 是否有有效的替代方案。我们正面临 SIFR 的性能挑战,我们希望更换它。一种选择是我们只使用系统字体。有人可以提供我们可以研究和解决 SIFR 遇到的性能问题的任何方向吗?甚至欢迎更换建议。谢谢
I wish to know if there is an efficient alternative for SIFR. We are facing performance challenges with SIFR and we wish to replace it. One option is that we just use system fonts. Can someone please provide any direction in which we can research and solve the performance issue that we are having with SIFR. Even a replacement suggestion is welcome. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我通常将其分为 3 类:
font-family: Arial, sans-serif;
)sIFR 是第 3 方解决方案。 Cufón、typeface.js、TypeKit(需要邀请)、TypeSelect 并加载和加载其他库。
远程系统字体的主要问题是:
第三方解决方案的问题可能包括:
今天网络上的说法是 Cufón是新的 sIFR,Cufón 是网络字体的 jQuery。然而,我不喜欢他们在最新版本中使用自定义
元素所做的事情,这些元素破坏了文档的验证,但我是网络标准清教徒,所以我的话应该被采纳< em>cum grano salis;)I usually split this into 3 categories:
font-family: Arial, sans-serif;
)sIFR is a 3rd party solution. So are Cufón, typeface.js, TypeKit (invite needed), TypeSelect and loads and loads of other libraries.
The main problem with remote system fonts are:
Problems with 3rd party solutions might include:
The word of the web today is that Cufón is the new sIFR and that Cufón is the jQuery for fonts on the web. I however don´t like what they did in their latest releases using custom
<cufon>
-elements that break the validation of the document but I´m web standards puritan so my words are to be taken cum grano salis ;)我刚刚在最近的网站上尝试使用 webfonts ,我很高兴,如果不是因为痛苦的经历IE 和 EOT。
I have just tried using webfonts on a recent website and I am quite happy, if it not was for the painful experience with IE and EOT.
如果您使用 PHP,我会推荐 FLIR
If you are working with PHP I would recommend FLIR
javascript 替代方案与 sIFR 一起工作要容易得多。我使用 cufon,但还有很多替代方案。
另一种选择是使用 @font-face css 属性。最初设置起来比较困难,但使用 CSS 而不是 javascript 具有巨大的优势。这是一篇关于如何实现此目标的好文章
http://snook.ca /archives/html_and_css/becoming-a-font-embedding-master
The javascript alternatives are far easier to work with that sIFR. I use cufon, but there are a number of alternatives.
Another option is to use the @font-face css property. This is more difficult to initially set up but has the huge advantage of using CSS instead of javascript. Here's a good article on how to achieve this
http://snook.ca/archives/html_and_css/becoming-a-font-embedding-master