From 9d2c34f456cbef0b7298f7fe428b11a6134ab72b Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 7 Mar 2023 12:35:47 +0800 Subject: class: Switch Chinese font to 'Noto Serif CJK' since it's more common Actually, the 'Noto Serif CJK' font and the previous 'Source Han Serif' font are the same font but with different names. However, the former is more common and ready to use; for example, it's generally installed by default on many Linux distros and it's available on Overleaf. Update the README accordingly. --- README.md | 8 +++++--- resume.cls | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e8ad590..aecbd73 100644 --- a/README.md +++ b/README.md @@ -101,13 +101,15 @@ opensource fonts: and then extract the `IBM-Plex-Serif` and `IBM-Plex-Mono` directories and install them. -* [Source Han Serif](https://github.com/adobe-fonts/source-han-serif) +* [Noto Serif CJK](https://github.com/notofonts/noto-cjk) - Download the `SourceHanSerifSC.zip` archive + Download the `NotoSerifCJKsc.zip` archive (Language Specific OTFs Simplified Chinese) from the - [releases](https://github.com/adobe-fonts/source-han-serif/releases) page, + [releases](https://github.com/notofonts/noto-cjk/releases) page, and then install all of them. +On Debian Linux, simply do `apt install fonts-ibm-plex fonts-noto-cjk`. + Of course, you can use the fonts you prefer by modifying the template directly. However, you may need to tweak the [column width in the template](resume.cls#L158) diff --git a/resume.cls b/resume.cls index 67b3bbd..4d9bede 100644 --- a/resume.cls +++ b/resume.cls @@ -1,5 +1,5 @@ %% -%% Copyright (c) 2018-2019 Weitian LI +%% Copyright (c) 2018-2023 Weitian LI %% Copyright (c) 2016 Christophe Roger %% The LaTeX Project Public License (LPPL) Version 1.3c %% @@ -12,7 +12,7 @@ %% https://www.latextemplates.com/template/plasmati-graduate-cv %% -\ProvidesClass{resume}[2023/02/03 v2.5.0 Resume Class] +\ProvidesClass{resume}[2023/02/03 v2.5.1 Resume Class] \LoadClass{article} %% @@ -94,7 +94,7 @@ % Chinese setup \ifdef{\@zh}{ - \setCJKmainfont{Source Han Serif SC} + \setCJKmainfont{Noto Serif CJK SC} % Redefine '\emph' to bold style % Credit: https://tex.stackexchange.com/a/227644 \let\emph\relax % there's no \RedeclareTextFontCommand -- cgit v1.2.2