CTeX-org / ctex-kit

Macro Packages and Scripts for Chinese TeX users
972 stars 124 forks source link

Windows10,在 TeX Live 2021 中 ctex 文档类的字体默认使用 fandol。 #569

Closed syvshc closed 3 years ago

syvshc commented 3 years ago

MWE:

\documentclass{ctexart}
\begin{document}
    \textbf{黑体}宋体
\end{document}

image 并且通过 Adobe Acrobat 查看 PDF 内嵌字体为 FandolSong

\documentclass[fontset=windows]{ctexart}
\begin{document}
    \textbf{黑体}宋体
\end{document}

image 此时内嵌字体为 SimSunSimHei

zepinglee commented 3 years ago

WSL?

syvshc commented 3 years ago

WSL?

只有 Windows10,没有子系统。

sikouhjw commented 3 years ago

复现条件:xelatex+win10(20H2)+texlive2021 我在 ctex v2.5.6 发布后用 texlive2020 更新过,没出现这个 bug mwe.zip

zepinglee commented 3 years ago

难道是 L3 kernel 的 bug?可以试下

\documentclass{article}
\begin{document}
\ExplSyntaxOn
\c_sys_platform_str\par
\sys_if_platform_windows:TF
  { True }
  { False }
\ExplSyntaxOff
\end{document}
syvshc commented 3 years ago

\documentclass{article} \begin{document} \ExplSyntaxOn \c_sys_platform_str\par \sys_if_platform_windows:TF { True } { False } \ExplSyntaxOff \end{document}

看起来是 L3 的问题,输出为

unknown
False
zepinglee commented 3 years ago

这就尴尬了,给 https://github.com/latex3/latex3 提一下 issue 吧。

syvshc commented 3 years ago

已经提了 issue https://github.com/latex3/latex3/issues/867

stone-zeng commented 3 years ago

后续:https://tug.org/pipermail/tex-live/2021-April/046723.html

syvshc commented 3 years ago

后续: https://github.com/latex3/latex3/issues/867#issuecomment-815922541 如果测试成功将关闭该 issue