How to add some non-standard font to a website?

后端 未结 19 1385
时光说笑
时光说笑 2020-11-22 02:17

Is there a way to add some custom font on a website without using images, Flash or some other graphics?

For example, I was working on a wedding website, and I found

19条回答
  •  太阳男子
    2020-11-22 02:55

    Typeface.js and Cufon are two other interesting options. They are JavaScript components that render special font data in JSON format (which you can convert from TrueType or OpenType formats on their web sites) via the new element in all newer browsers except Internet Explorer and via VML in Internet Explorer.

    The main problem with both (as of now) is that selecting text does not work or at least works only quite awkwardly.

    Still, it is very nice for headlines. Body text... I don't know.

    And it's surprisingly fast.

提交回复
热议问题