Skip to content

Commit

Permalink
feature: use new fonts in macOS
Browse files Browse the repository at this point in the history
See #36.
  • Loading branch information
stone-zeng committed Jul 23, 2018
1 parent 63d902e commit 16a1371
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions source/fduthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -3115,18 +3115,19 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <xdzeng96@gmail.com>.
\fdu_choose_cjk_font:nn { kai } { FZKai-Z03 }
},
% \end{macrocode}
% Mac (华文)系列。
% Mac(华文)系列。
% \changes{v0.8}{2018/07/23}{使用 macOS 下的新版字体。}
% \begin{macrocode}
cjk-font / mac .code:n =
{
\fdu_choose_cjk_font_with_option:nnn { song }
{ STSong } { BoldFont = STZhongsong }
\fdu_choose_cjk_font:nn { hei } { STHeiti }
{ Songti~ SC~ Light } { BoldFont = Songti~ SC~ Bold }
\fdu_choose_cjk_font:nn { hei } { Heiti~ SC }
\fdu_choose_cjk_font:nn { fang } { STFangsong }
\fdu_choose_cjk_font:nn { kai } { STKaiti }
\fdu_choose_cjk_font:nn { kai } { Kaiti~ SC }
},
% \end{macrocode}
% Windows (中易)系列。
% Windows(中易)系列。
% \begin{macrocode}
cjk-font / windows .code:n =
{
Expand Down

1 comment on commit 16a1371

@zepinglee
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这样楷体似乎还不能调用粗体,见 CTeX-org/ctex-kit#379

我目前的配置是:

\ustc@strifeq{\ustc@fontset}{mac}{
  \setCJKmainfont[
       UprightFont = * Light,
          BoldFont = * Bold,
        ItalicFont = Kaiti SC,
    BoldItalicFont = Kaiti SC Bold,
  ]{Songti SC}
  \setCJKsansfont[BoldFont=* Medium]{Heiti SC}
  \setCJKfamilyfont{zhsong}[
       UprightFont = * Light,
          BoldFont = * Bold,
  ]{Songti SC}
  \setCJKfamilyfont{zhhei}[BoldFont=* Medium]{Heiti SC}
  \setCJKfamilyfont{zhkai}[BoldFont=* Bold]{Kaiti SC}

Please sign in to comment.