@ font-face现在可以使用吗? [英] Is @font-face usable now?

查看:111
本文介绍了@ font-face现在可以使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在项目中使用花哨的字体,但我真的想避免sifr和其他丑陋的选择,所以我看着@ font-face。

I have to use a fancy font in a project but I'd really like to avoid sifr and other ugly alternatives so I'm looking at @font-face.

但是,我真的很困惑与几个博客/网站提供不同的意见上的可用性。是准备好了吗?

However, I'm really confused with several blog/sites offering different views on its usability. Is is ready yet? Which browsers support it today?

感谢

推荐答案

浏览器实现它。唯一真正的吸引力是,Internet Explorer需要自己的OTF格式的字体文件,并且不会理解TTF格式。许多提供用于@ font-face的字体的网站将为您提供在Internet Explorer和其他浏览器中显示所需的格式和CSS。

Just about every browser implements it now. The only real catch is that Internet Explorer requires font files in its own OTF format and will not understand TTF format. Many sites that provide fonts for use with @font-face will provide you with both formats and the CSS necessary for them to display in both Internet Explorer and other browsers.

请查看 http://www.fontsquirrel.com/ 以获得免费的字体库的良好示例它们带有预制的@ font-face下载(包括文件格式和相关的CSS。)

Take a look at http://www.fontsquirrel.com/ for a good example of a free library of fonts that come with pre-made @font-face downloads (both file formats and the relevant CSS.)

这篇关于@ font-face现在可以使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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