网络上的字体 [英] Fonts on the Web

查看:99
本文介绍了网络上的字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

网络开发者可用的字体集合受到了很大的限制。我记得很久以前阅读过关于TrueDoc,作为一种在网站上运输字体的方法 - 但它似乎已经失去了。有人使用这个,或类似的东西吗?是否有足够的浏览器支持?我缺少一个好的解决方案?



请注意,负责任的网络开发人员不使用只在Windows上可用的字体(和,特别是






p> 更新:正如几个人所指出的,为没有您使用的特定字体的人提供后备字体列表没有问题。我实际上总是这样做,并不是说这是错误的。



虽然我的问题是严重的措辞,我的意思是,一个设计师应该不要对客户端将有什么可用的太多假设。

解决方案

Safari应用程式,以及在较小程度上,Firefox 3支持CSS中的 @ font-face ,这允许您使用自定义字体。你需要有适当的许可证来分发字体文件。这些文章更详细地解释:




The collection of fonts available to a web developer is depressingly limited. I remember reading long ago about TrueDoc, as a way of shipping fonts alongside a website - but it seems to have languished. Has anybody used this, or something similar? Is it supported by enough browsers? Am I missing a good solution?

Note that a responsible web developer does not use fonts that are only available on Windows (and especially ones that are only available on Vista), nor do they use a technology that isn't supported by at least the majority of browsers.


Update: As several people have pointed out, there's nothing wrong with providing a list of fallback fonts for people who don't have the specific font you use. I do in fact always do this, and didn't mean to suggest that this was wrong.

While my question was badly phrased, what I meant was that a designer should not make too many assumptions about what the client will have available. You should plan for how all users will see your site, not just for people using your own preferred setup.

解决方案

Safari, and to a lesser extent, Firefox 3 have support for @font-face in CSS, which lets you use custom fonts. You need to have the appropriate licence to distribute the font files though. These articles explain it in more detail:

这篇关于网络上的字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆