aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-10-15 14:03:59 +0800
committerAaron LI <aly@aaronly.me>2018-10-15 14:04:21 +0800
commit3fe1433b3adf2856db2ca3ea9915b61c3b23eb7d (patch)
tree757490fee13f8bc70b75ade3ec247284f0df13c3
parent04dd7e618290e1f5d8e2bc7ab1eefa292602aae5 (diff)
downloadresume-3fe1433b3adf2856db2ca3ea9915b61c3b23eb7d.tar.bz2
class: Change to use 'IBM Plex' font
Need to adjust the width of the left column.
-rw-r--r--README.md8
-rw-r--r--resume.cls12
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}