We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 中可以使用预定义的几套字体,有没有可能提供一套类似 xeCJK 宏包 \setCJKmainfont 的接口?
ctex
xeCJK
\setCJKmainfont
另外西文字体设置无法使用 fontspec,使用 otf 字体的话有什么好的办法呢?
fontspec
The text was updated successfully, but these errors were encountered:
目前 ctex 中使用的是 \ctex_set_upfonts:nnnnnn 内部函数等来定义字体,还没有提供公共接口。由于原理类似,这个公共接口将 zhmCJK 包的代码稍微改改就能用。只是考虑到用 uptex 的普通用户会比较少,一直没有做。
\ctex_set_upfonts:nnnnnn
zhmCJK
另外在传统引擎下使用西文 otf 字体需要一系列较为繁琐的转换,不建议折腾。
Sorry, something went wrong.
在马老板的 ApTeX 下面要怎么弄这些呢?这个引擎听说是原生支持 otf 的吧。
ApTeX 字体设置接口一直没稳定下来,就没急着弄。当然,ApTeX 也可以用 upTeX 的方式设置字体。
upTeX 之所以没有像 zhmCJK 一样提供接口,主要原因是 zhmetrics-uptex 出于体积考虑,只有 6 个字体可选,对应于 3 个 rm 族字体,2 个 sf 族,2 个 tt 族,恰好给 ctex 包适配用。再增加 \setCJKmanfont 之类命令并不使用。
zhmetrics-uptex
\setCJKmanfont
如果需要更多,就得生成更多的 jfm 文件了。
No branches or pull requests
请问在这两种引擎之下应该如何设置字体(包括中文与西文)?
目前看到的在
ctex
中可以使用预定义的几套字体,有没有可能提供一套类似xeCJK
宏包\setCJKmainfont
的接口?另外西文字体设置无法使用
fontspec
,使用 otf 字体的话有什么好的办法呢?The text was updated successfully, but these errors were encountered: