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

ctex: up(La)TeX / Ap(La)TeX 下的字体设置 #279

Open
stone-zeng opened this issue May 1, 2017 · 3 comments
Open

ctex: up(La)TeX / Ap(La)TeX 下的字体设置 #279

stone-zeng opened this issue May 1, 2017 · 3 comments

Comments

@stone-zeng
Copy link
Member

请问在这两种引擎之下应该如何设置字体(包括中文与西文)?

目前看到的在 ctex 中可以使用预定义的几套字体,有没有可能提供一套类似 xeCJK 宏包 \setCJKmainfont 的接口?

另外西文字体设置无法使用 fontspec,使用 otf 字体的话有什么好的办法呢?

@qinglee
Copy link
Member

qinglee commented May 1, 2017

目前 ctex 中使用的是 \ctex_set_upfonts:nnnnnn 内部函数等来定义字体,还没有提供公共接口。由于原理类似,这个公共接口将 zhmCJK 包的代码稍微改改就能用。只是考虑到用 uptex 的普通用户会比较少,一直没有做。

另外在传统引擎下使用西文 otf 字体需要一系列较为繁琐的转换,不建议折腾。

@stone-zeng
Copy link
Member Author

在马老板的 ApTeX 下面要怎么弄这些呢?这个引擎听说是原生支持 otf 的吧。

@leo-liu
Copy link
Member

leo-liu commented May 2, 2017

ApTeX 字体设置接口一直没稳定下来,就没急着弄。当然,ApTeX 也可以用 upTeX 的方式设置字体。

upTeX 之所以没有像 zhmCJK 一样提供接口,主要原因是 zhmetrics-uptex 出于体积考虑,只有 6 个字体可选,对应于 3 个 rm 族字体,2 个 sf 族,2 个 tt 族,恰好给 ctex 包适配用。再增加 \setCJKmanfont 之类命令并不使用。

如果需要更多,就得生成更多的 jfm 文件了。

@Liam0205 Liam0205 changed the title up(La)TeX / Ap(La)TeX 下的字体设置 ctex: up(La)TeX / Ap(La)TeX 下的字体设置 Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants