Skip to content

Instantly share code, notes, and snippets.

关于 SourceHanSans 和 SourceHanSerif 字体在命名上的一些记录

花了快两小时做了一件可能没什么意义的事情, 整理了下 SourceHanSans 和 SourceHanSerif 这两个字体的命名, 搞明白之后发现好好看 official Source Han download guide 就能搞清楚的问题我居然自己造轮子去整理一份 adobe-fonts-notes.md. 好在基本搞清楚了 releases 页面的 Super OTC, OTCs, Language-specific OTFs 和 Region-specific Subset OTFs 这几种分发方式在字体命名方面的区别.

大致使用方式是根据系统支持程度选择不同的分发方式, 对于现代的操作系统尽量直接使用 Super OTC / OTCs, 不支持 OTC 的系统如 Kindle 选用 Language-specific OTFs. 但是不同分发方式在字体命名上有些不同, 不搞清楚命名方式在实际选用字体时会挺困扰的.

  • SourceHanSans 的 7 个字重分别为: ExtraLight, Light, Normal, Regular, Medium, Bold, Heavy
  • SourceHanSerif 的 7 个字重分别为: ExtraLight, Light, Regular, Medium, SemiBold, Bold, Heavy

关于字体命名, 大致格式为 $font_name[ $weight], 对 SourceHanSans, $weight 取值范围为 ["", "ExtraLight", "Light", "Normal", "Medium", "Heavy"], 对 SourceHanSerif, $weight 的取值范围为 `["", "ExtraLight", "Light", "Medium", "SemiBold", "Heav

@ak1ra-komj
ak1ra-komj / settings.json
Last active August 11, 2023 07:03
vscode-settings-with-background
{
"background.customImages": [
"https://i.loli.net/2020/06/11/sHdtowgryvk8Qeq.png",
"https://i.loli.net/2020/06/11/yfTGIBVMWXxR5cE.png",
"https://i.loli.net/2020/06/11/eSnE3mQYukBKsPt.png",
"https://i.loli.net/2020/06/11/29x4PdKmi7ApehI.png",
"https://i.loli.net/2020/06/11/YqjZbIB5hv4PKS3.png",
"https://i.loli.net/2020/06/11/Ru84bz5NnADWZLw.png",
"https://i.loli.net/2020/06/11/lswOX1IemtUrL6c.png",
"https://i.loli.net/2020/06/11/HrAeG5PqyfvnhwL.png",
@ak1ra-komj
ak1ra-komj / uBlacklist.txt
Last active October 9, 2021 10:00
uBlacklist block list
/.+\.baidu\.com/
/.+\.csdn\.net/
/.+\.jianshu\.com/
/.+\.zhihu\.com/
/yq\.aliyun\.com/
/developer\.aliyun\.com\/article/
/cloud\.tencent\.com\/developer/
/.+\.mbalib\.com/
title/小[\u4e00-\u9fa5](:?百科|知识|养生|健康)网/