html - 有多少字符/字形可以分配给网络字体?

标签 html css fonts

我正在使用此网络应用程序生成自定义图标字体:http://icomoon.io/app/#font

为了这道题的目的,我需要能够为每个图标分配一个可以输入到html中的字符。到目前为止,我已经使用了 a-z、A-Z、1-0(加类次),然后是 alt+1-alt+254(对于之前未使用的所有其余部分)。

我有 404 个图标需要表示,这还剩下大约 70 个图标。

是否还有其他我遗漏的字符输入方式?

最佳答案

作为deceze他在对您的问题的评论中提到,私有(private)使用区域应该用于自定义符号。

来自 Wikipedia article about Private Use Areas 的第一段:

In Unicode, the Private Use Areas are three ranges of code points (U+E000–U+F8FF in the BMP, and planes 15 and 16) that, by definition, will not be assigned characters by the Unicode Consortium. They are intentionally left undefined so that third parties may define their own characters without conflicting with Unicode Consortium assignments. Under the Unicode Stability Policy, the Private Use Areas will remain allocated for that purpose in all future Unicode versions.

您不应覆盖现有的 Unicode 字符。如果您的自定义字体由于某种原因无法加载,它将回退到默认值(由您的站点或浏览器定义)。在这种情况下,您的网页将充满随机的乱码,现在会显示您覆盖的预先存在的 Unicode 字符。

关于html - 有多少字符/字形可以分配给网络字体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17833657/

相关文章:

html - Bootstrap 输入 css 问题

java - 使用 spring mvc 进行国际化

css - 字体不变

jquery - jquery 中的 addClass() removeClass() 问题

javascript - 刷新网页后保留变量的值

javascript - 如何显示12小时制并显示实际时间和存储时间之间的时差

html - 如何在 Foundation 6 的顶部栏中为 anchor 标签添加填充?

java - 全局更改整个框架JAVA的字体

iPhone iOS5 如何向用户呈现字体类型、大小、颜色和对齐小部件?

php - mysql数据库的html表单选项值只存储第一个字