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: macnew 的楷体无法自动使用粗体 #379

Closed
zepinglee opened this issue Sep 29, 2018 · 3 comments
Closed

ctex: macnew 的楷体无法自动使用粗体 #379

zepinglee opened this issue Sep 29, 2018 · 3 comments
Assignees
Milestone

Comments

@zepinglee
Copy link
Member

目前 macnew 的楷体配置是:

\setCJKfamilyfont{zhkai}{Kaiti SC}

然而这样无法自动使用楷体粗体,MWE:

\documentclass[UTF8,fontset=macnew]{ctexart}
\begin{document}
{\kaishu 测试中文 \bfseries 测试中文\par}
\setCJKfamilyfont{zhkai}[BoldFont=Kaiti SC Bold]{Kaiti SC}
{\kaishu 测试中文 \bfseries 测试中文\par}
\end{document}

screen shot 2018-09-29 at 6 26 36 pm

@muzimuzhi
Copy link
Contributor

比较「调用 Songti SC 和 Kaiti SC 时,fontspec 写入日志的信息」后,我倾向于认为问题出在字体文件 Kaiti.ttc 本身。

简化过的 MWE:

\documentclass{article}
\usepackage{fontspec}
\newfontfamily\songti{Songti SC}
\newfontfamily\kaiti{Kaiti SC}
\begin{document}
dummy text
\end{document}

日志中,关于 Songti SC 的部分(注意这里能自动获取 bold series 等的字体信息):

.................................................
. fontspec info: "no-font-shape"
. 
. Could not resolve font "Songti SC/I" (it probably doesn't exist).
.................................................
.................................................
. fontspec info: "defining-font"
. 
. Font family 'SongtiSC(0)' created for font 'Songti SC' with options [].
.  
.  This font family consists of the following NFSS series/shapes:
.  
. - 'normal' (m/n) with NFSS spec.: <->"Songti SC/AAT"
. - 'small caps'  (m/sc) with NFSS spec.: 
. - 'bold' (bx/n) with NFSS spec.: <->"Songti SC/B/AAT"
. - 'bold small caps'  (bx/sc) with NFSS spec.: 
. - 'bold italic' (bx/it) with NFSS spec.: <->"Songti SC/BI/AAT"
. - 'bold italic small caps'  (bx/itsc) with NFSS spec.: 
.................................................

关于 Kaiti SC 的部分:

.................................................
. fontspec info: "no-font-shape"
. 
. Could not resolve font "Kaiti SC/BI" (it probably doesn't exist).
.................................................
.................................................
. fontspec info: "no-font-shape"
. 
. Could not resolve font "Kaiti SC/B" (it probably doesn't exist).
.................................................
.................................................
. fontspec info: "no-font-shape"
. 
. Could not resolve font "Kaiti SC/I" (it probably doesn't exist).
.................................................
.................................................
. fontspec info: "defining-font"
. 
. Font family 'KaitiSC(0)' created for font 'Kaiti SC' with options [].
.  
.  This font family consists of the following NFSS series/shapes:
.  
. - 'normal' (m/n) with NFSS spec.: <->"Kaiti SC/AAT"
. - 'small caps'  (m/sc) with NFSS spec.: 
.................................................

@Liam0205 Liam0205 self-assigned this Nov 30, 2018
@Liam0205 Liam0205 added the bug label Nov 30, 2018
@Liam0205
Copy link
Contributor

复现了 @muzimuzhi 的结论。周末检查后,考虑更新。

zepinglee referenced this issue in stone-zeng/fduthesis Mar 5, 2019
@zepinglee
Copy link
Member Author

这个咋还没修?那我直接 push 到 master 啦?

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