From 3fe1433b3adf2856db2ca3ea9915b61c3b23eb7d Mon Sep 17 00:00:00 2001 From: Aaron LI <aly@aaronly.me> Date: Mon, 15 Oct 2018 14:03:59 +0800 Subject: class: Change to use 'IBM Plex' font Need to adjust the width of the left column. --- README.md | 8 ++------ resume.cls | 12 +++++------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e1a6cac..e69c7ad 100644 --- a/README.md +++ b/README.md @@ -38,12 +38,8 @@ and can be obtained from [here](https://fontawesome.com/how-to-use/on-the-deskto Required Fonts -------------- The following opensource fonts are used in the template: -* [TeX Gyre](http://www.gust.org.pl/projects/e-foundry/tex-gyre) - (Pagella) -* [Roboto](https://fonts.google.com/specimen/Roboto) -* [M+](https://mplus-fonts.osdn.jp/about-en.html) - (1mn) -* [Noto Serif CJK](https://www.google.com/get/noto/help/cjk/) +* [IBM Plex](https://github.com/IBM/plex) (Serif, Mono) +* [Source Han Serif](https://github.com/adobe-fonts/source-han-serif) License ------- diff --git a/resume.cls b/resume.cls index 6ae3875..373d1ab 100644 --- a/resume.cls +++ b/resume.cls @@ -89,15 +89,13 @@ % Fonts \defaultfontfeatures{Mapping=tex-text} -\setmainfont{TeX Gyre Pagella} -\setsansfont{Roboto} -\setmonofont{M+ 1mn} +\setmainfont{IBM Plex Serif} +\setmonofont{IBM Plex Mono} % Chinese setup \ifdef{\@zh}{ \xeCJKsetup{PunctStyle=kaiming} - \setCJKmainfont{Noto Serif CJK SC} - \setCJKsansfont{Noto Sans CJK SC} + \setCJKmainfont{Source Han Serif SC} }{} % Font Awesome icon aliases @@ -158,13 +156,13 @@ \setlist[itemize,1]{label=\faAngleRight, nosep, leftmargin=2em} \setlist[description,1]{style=sameline} -% New length definition +% Width of the left column for date ranges \newlength{\leftcolwidth} \newlength{\rightcolwidth} \ifdef{\@zh}{% \setlength{\leftcolwidth}{6em} }{ - \setlength{\leftcolwidth}{7.5em} + \setlength{\leftcolwidth}{8.1em} } \setlength{\rightcolwidth}{\dimexpr \textwidth - \leftcolwidth - 4\tabcolsep} -- cgit v1.2.2