SIFR 的替代方案

发布于 2024-08-10 07:31:26 字数 114 浏览 4 评论 0原文

我想知道 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

久随 2024-08-17 07:31:26

我通常将其分为 3 类:

  • 本地系统字体(我们已经使用多年的字体,font-family: Arial, sans-serif;
  • 远程系统字体(使用 @ 从服务器链接和下载的字体) font-face 又名网络字体
  • 第 3 方解决方案

sIFR 是第 3 方解决方案。 Cufóntypeface.jsTypeKit(需要邀请)、TypeSelect 并加载和加载其他库。

远程系统字体的主要问题是:

第三方解决方案的问题可能包括:

  • 法律问题
  • 取决于 JavaScript(并且在某些情况下 )性能(大多数情况下比 sIFR 更好,
  • 但仍然比本地系统字体慢)
  • 在某些情况下无法选择和复制文本
  • 在某些情况下它们会破坏上下文菜单
  • FOUT

今天网络上的说法是 Cufón是新的 sIFR,Cufón 是网络字体的 jQuery。然而,我不喜欢他们在最新版本中使用自定义 元素所做的事情,这些元素破坏了文档的验证,但我是网络标准清教徒,所以我的话应该被采纳< em>cum grano salis;)

I usually split this into 3 categories:

  • Local system fonts (what we have used for years, font-family: Arial, sans-serif;)
  • Remote system fonts (fonts linked and downloaded from the server with @font-face a.k.a. web fonts)
  • 3rd party solutions

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:

  • legal issues (hopefully the promise of WOFF (Web Open Font Format) will settle this, fx3.6 will support WOFF)
  • finding complete free fonts (with complete I mean as many glyphs as possible, usually free fonts don´t support enough glyphs to be viable, see Study of Free/Shareware Web Fonts done by Ascender Corporation)
  • You need to create a special font-file for the Internet Explorer UA called eot (Embedded OpenType)
  • Performance
  • FOUT (Flash of Unstyled Text)

Problems with 3rd party solutions might include:

  • legal issues
  • depend on JavaScript (and in some cases plug-ins like flash)
  • performance (mostly better then sIFR but still slower then local system fonts)
  • text can´t be selected and copied in some cases
  • in some cases they break the context manu
  • FOUT

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 ;)

宛菡 2024-08-17 07:31:26

我刚刚在最近的网站上尝试使用 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.

只是我以为 2024-08-17 07:31:26

如果您使用 PHP,我会推荐 FLIR

If you are working with PHP I would recommend FLIR

花开浅夏 2024-08-17 07:31:26

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文