将不寻常的字体放入网页中
在客户的网络项目中,我们希望在整个网站的一些地方使用一种看起来像手写体的“脚本”字体。 问题是这些字体通常不是系统字体,因此我们认为我们不能建议客户使用它们(客户喜欢其外观); 它们可能会或可能不会很好地呈现给客户。
我们计划继续使用本地字体创建各种短语的 GIF,然后在网站页面上使用这些图像。 在我看来,这似乎有点笨拙(尽管它应该有效)。 有更好的选择吗?
On a web project for a client, we want to use a type of "script" font that looks like handwriting in a few places throughout the site. The problem is that these are not typically system fonts and so we don't think we can advise the client to use them (client likes the look); they may or may not render nicely at the client.
We are planning to go forward by just creating GIF's of various phrases using the font locally, then using those images on the site pages. This seems to me to be a little kludgy (though it should work). Is there a better alternative?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
cufon 使用 JavaScript 将标题等替换为 SVG 或 VML 中呈现的文本。 它很好地失败了,即如果无法呈现 SVG 或 VML,则不会替换标题。
typeface.js 类似,使用canvas标签。
尽管字体许可始终存在问题。
cufon uses javascript to replace headings and such with text rendered in a SVG or VML. It fails nicely, that is the headings are not replaced if the SVG or VML cannot be rendered.
typeface.js is similar, using the canvas tag.
Although there are always the issues with font licensing.
您看过sIFR吗?
http://www.mikeindustries.com/blog/sifr/
它使用 JavaScript 来替换带有嵌入特殊字体的 Flash 电影的 HTML 标签。
另外...
这里讨论了不同方法之间的比较:
https://stackoverflow.com/questions/692990/sifr-vs-cufon-vs-字体js
Have you looked at sIFR ?
http://www.mikeindustries.com/blog/sifr/
It uses JavaScript to replace HTML-tags with a flash-movie that has the special font embedded.
Also...
The comparison between the different methods has been discussed here:
https://stackoverflow.com/questions/692990/sifr-vs-cufon-vs-typeface-js
您可以检查所需的字体是否在 Google Web Fonts 上,然后引用它:
http://www.google.com/webfont
You could check if the desired font is on Google Web Fonts and then reference it:
http://www.google.com/webfont