Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
muzimuzhi opened this issue Nov 27, 2023 · 2 comments
Open

Comments

@muzimuzhi
Copy link
Contributor

muzimuzhi commented Nov 27, 2023

目前,

  • ctexfontset=ubuntu(对应 ctex-fontset-ubuntu.def 配置文件)和测试集中都用到 Noto Sans/Serif CJK
    \sys_if_engine_xetex:T
    {
    \def\FontOptions{UprightFont=*, BoldFont=*~Bold, ItalicFont=*, BoldItalicFont=*~Bold}
    \setCJKmainfont{Noto~Serif~CJK~SC}[\FontOptions]
    \setCJKsansfont{Noto~Sans~CJK~SC}[\FontOptions]
    \setCJKfamilyfont{zhsong}{Noto~Serif~CJK~TC}[\FontOptions]
    \setCJKfamilyfont{zhhei}{Noto~Sans~CJK~TC}[\FontOptions]
    \NewDocumentCommand\songti{}{\CJKfamily{zhsong}}
    \NewDocumentCommand\heiti{}{\CJKfamily{zhhei}}
    }
  • xeCJK 文档使用 Source Han Sans/Serif

    ctex-kit/xeCJK/xeCJK.dtx

    Lines 219 to 221 in 81f7050

    \setCJKmainfont[SP, Language=Chinese Simplified]{Source Han Serif SC}
    \setCJKmainfont[Ext-B]{SimSun-ExtB}
    \setCJKmainfont[Hangul, Script=Hangul, Language=Korean]{Source Han Serif K}

    \CJKfontspec[Language=Chinese ~ Simplified]{Source ~ Han ~ Serif ~ SC}

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

根据 Ken Lunde 2015 年发的评论 adobe-fonts/source-han-sans#122 (comment)

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 年仍然成立吗?

@stone-zeng
Copy link
Member

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

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

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

@Firestar-Reimu
Copy link

Firestar-Reimu commented Apr 3, 2024

可以考虑加个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以防止日文字体优先出现在中文字体的位置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants