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

后端 未结 19 1872
时光说笑
时光说笑 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 03:02

    I've found that the easiest way to have non-standard fonts on a website is to use sIFR

    It does involve the use of a Flash object that contains the font, but it degrades nicely to standard text / font if Flash is not installed.

    The style is set in your CSS, and JavaScript sets up the Flash replacement for your text.

    Edit: (I still recommend using images for non-standard fonts as sIFR adds time to a project and can require maintenance).

提交回复
热议问题