ctex-kit icon indicating copy to clipboard operation
ctex-kit copied to clipboard

只使用 Noto Sans/Serif CJK 和 Source Han Sans/Serif 中的一类?

Open muzimuzhi opened this issue 2 years ago • 2 comments

目前,

  • ctexfontset=ubuntu(对应 ctex-fontset-ubuntu.def 配置文件)和测试集中都用到 Noto Sans/Serif CJK https://github.com/CTeX-org/ctex-kit/blob/81f7050b2b6dabdbe9dd2c472c3e8e446d17a322/ctex/test/testfiles/fonts02.lvt#L7-L19
  • xeCJK 文档使用 Source Han Sans/Serif https://github.com/CTeX-org/ctex-kit/blob/81f7050b2b6dabdbe9dd2c472c3e8e446d17a322/xeCJK/xeCJK.dtx#L219-L221 https://github.com/CTeX-org/ctex-kit/blob/81f7050b2b6dabdbe9dd2c472c3e8e446d17a322/xeCJK/xeCJK.dtx#L237

这使得本地测试和编译 ctexxeCJK 的文档和代码,需要同时安装这两套字体。ctex-kit 是否能只使用其中的一套,以减少本地测试、编译的依赖,减轻小硬盘用户的负担(就是我)?

根据 Ken Lunde 2015 年发的评论 https://github.com/adobe-fonts/source-han-sans/issues/122#issuecomment-128087438 ,

Yes, in terms of the glyphs, their metrics, Unicode mappings, and features. In other words, the Source Han Sans and Noto Sans CJK typeface families are mechanically identical. I know, because I built the fonts of both families.

They differ only in their names, and the fact that the Noto Sans CJK fonts lack localized menu names.

评论里的内容在 2023 年仍然成立吗?

muzimuzhi avatar Nov 27 '23 01:11 muzimuzhi

建议统一为 Noto Sans/Serif CJK,因为多数 Linux 发行版以及 Overleaf 内置的都是 Noto。Source Han Sans/Serif 一般需要用户自行安装。

评论里的内容在 2023 年仍然成立吗?

仍然成立,具体可以参考 SourceHanSansReadMeSourceHanSerifReadMe

stone-zeng avatar Nov 27 '23 06:11 stone-zeng

可以考虑加个alias?

They differ only in their names, and the fact that the Noto Sans CJK fonts lack localized menu names.

同时考虑如何调和language-specificlocal-specific之间的关系,比如很多人可能会只下载Source Hans CN以防止日文字体优先出现在中文字体的位置

Firestar-Reimu avatar Apr 03 '24 07:04 Firestar-Reimu