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

查看:21
本文介绍了@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天全站免登陆