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

macOS 10.15 Catalina 的 Songti.ttc 路径改变导致判断系统有误 #455

Closed
zepinglee opened this issue Oct 22, 2019 · 1 comment
Closed

Comments

@zepinglee
Copy link
Member

macOS 10.15 Catalina 的 Songti.ttc 路径改到了 /System/Library/Fonts/Supplemental/Songti.ttc,所以目前用 /Library/Fonts/Songti.ttc 来判断的逻辑就不对了:

ctex-kit/ctex/ctex.dtx

Lines 6085 to 6098 in dce0e53

% \begin{macro}[int]{\ctex_if_macosx:TF}
% \changes{v2.1}{2015/06/17}{改用 \file{/Library/Fonts/Songti.ttc} 为特征文件。}
% 以 \file{/Library/Fonts/Songti.ttc} 为特征文件判断 Mac~OS~X。
% \begin{macrocode}
\cs_new_protected_nopar:Npn \ctex_if_macosx:TF #1#2
{
\file_if_exist:nTF { \c_@@_macosx_file_str }
{ \tl_gset:Nn \g_@@_fontset_tl {#1} }
{ \tl_gset:Nn \g_@@_fontset_tl {#2} }
}
\str_const:Nn \c_@@_macosx_file_str { /Library/Fonts/Songti.ttc }
%</xetex|pdftex|uptex>
% \end{macrocode}
% \end{macro}

建议换成 /System/Library/Fonts/STHeiti Light.ttc,这个目录下的字体似乎稍微稳定些

@muzimuzhi
Copy link
Contributor

补一个临时方案,为有相同问题并搜到这个 issue 的用户提供一定的方便。

临时方案:手动指定 fontset,例如

\documentclass[fontset=macnew]{ctexart}

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

4 participants