且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在网页上显示未安装的字体

更新时间:2023-10-28 13:45:58

您可以使用

You may do this using CSS3's @font-face feature. But you have to provide the necessary font formats.

FontSquirrel的 @ font-face生成器是一个不错的网络工具,可以完成所有肮脏的工作为你.它非常易于使用,并创建了所有必需的文件,包括CSS样式表和HTML示例文件.

FontSquirrel's @font-face Generator is a nice web tool that does all the dirty work for you. It is very easy to use and creates all the necessary files, including CSS stylesheets and a HTML example file.

真正有价值的是,它包括在所有主要浏览器中显示字体所需的所有格式和技巧,这些东西不太容易弄清.

What's really valuable is that it includes all formats and hacks needed to display the font in all major browsers, something which is not so easy to get right.