Skip to content

字体

目录


字体是个有意思的东西 我们日常都会用到 但是其中也有很多门道

版权

字体也是有版权的,比如微软系列字体

以微软雅黑字体为例 协议如下

NOTIFICATION OF LICENSE AGREEMENT You may use this font to display and print content as permitted by the license terms for the product in which this font is included. You may only (i) embed this font in content as permitted by the embedding restrictions included in this font; and (ii) temporarily download this font to a printer or other output device to help print content.

机翻: 许可协议通知 您可以按照包含此字体的产品的许可条款使用此字体来显示和打印内容。您仅可 (i) 按照此字体中包含的嵌入限制将此字体嵌入到内容中;以及 (ii) 将此字体临时下载到打印机或其他输出设备以辅助打印内容。

也就是说如果你想要将这个字体放到你的项目中,是不允许的

那为什么日常中不会出现缺字体的问题呢?

一是 因为 winxp 以上都会自带微软雅黑字体,并且如果你安装 wps/office 什么的也会自动安装微软雅黑字体,所以一般都不会有缺字体的问题; 再来浏览器一般会使用本地类似的字体作为替代 ,有很多开源字体和微软雅黑 基本看不出差别 所以一般也不会出问题

font-family

不同浏览器对于 font-family 的保留字的处理并不相同 可能在一些环境下产生问题

alt text

左边为谷歌 右边为 firefox

这篇帖子,说明了类似的情况

Copyright © 2022 田园幻想乡 浙ICP备2021038778号-1