是否可以使用 Javascript 或任何其他技术强制在给定网页上使用自定义字体呈现文本?下载字体作为资源是可以的。换句话说,人们会/不应该依赖安装在用户浏览器中的字体。
有人试过吗?有可能吗?如果是,如何?
最佳答案
CSS 有 @font-face
。我认为这就是您所说的...
@font-face is a css rule which allows you to download a particular font from your server to render a webpage if the user hasn't got that font installed. This means that web designers will no longer have to adhere to a particular set of "web safe" fonts that the user has pre-installed on their computer.
在这里阅读更多:http://www.font-face.com/#lime_content
您可以在此处创建自己的嵌入字体
关于javascript - 是否可以强制使用自定义字体在给定网页上进行文本呈现?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7542214/