简体   繁体   English

是否有使用@ font-face的缺点?

[英]Is there any cons to use @font-face?

I found @font-face is good alternative of sIFR3 but every browser need different extension of font. 我发现@ font-face是sIFR3的不错选择,但每个浏览器都需要不同的字体扩展名。 so implementing is more than sIFR3. 因此实施不仅仅是sIFR3。

But very good thing is FLASH and Javascript not needed. 但是非常好的事情是不需要FLASH和Javascript。

Is there any cons to use @font-face in compare to sIFR3? 与sIFR3相比,使用@ font-face有什么缺点吗? I need compatibility in all A-Grade Browsers. 我需要所有A级浏览器的兼容性。

and

If any font which is freely available as a download on net or if font is purchased and provided by client or font is purchased by my company. 如果可以从网上免费下载任何字体,或者由客户购买并提供了字体,或者由我公司购买了字体。 in all condition can i use those fonts? 在所有情况下我都可以使用那些字体吗?

You can use @font-face with: 您可以将@ font-face用于:

For IE, the fallback is working great, but be sure to use the little hack for smooth rendering: http://allcreatives.net/2009/12/05/smoother-font-face-embedding-in-ie-7-8/ 对于IE,后备效果很好,但请务必使用小技巧进行平滑渲染: http : //allcreatives.net/2009/12/05/smoother-font-face-embedding-in-ie-7-8 /

Issues : 问题:

您可能还想查看Cufon( http://cufon.shoqolate.com )或Typekit( http://typekit.com/ )。

The worst is probably the delay for downloading the font where you'll see the original font first then, after a short delay, the downloaded font. 最糟糕的情况可能是下载字体的延迟,您会先看到原始字体,然后在短暂的延迟后看到下载的字体。

iirc, you don't need a different font extension for every browser. iirc,您不需要为每个浏览器使用不同的字体扩展名。 Only IE is different from all the others, as usual. 与往常一样,只有IE与所有其他IE不同。

The biggest disadvantage of this technique right now is the browsers that support it. 目前,此技术的最大缺点是支持该技术的浏览器。

See how people are trying to circumvent this disadvantage here: http://blog.themeforest.net/tutorials/how-to-achieve-cross-browser-font-face-support/ 在此处了解人们如何避免这种不利情况: http : //blog.themeforest.net/tutorials/how-to-achieve-cross-browser-font-face-support/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM