Skip to content

Commit 8730a84

Browse files
committed
use Core Sans font
1 parent 97d13e5 commit 8730a84

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
repository: mainmatter/core-sans-a-fonts
22+
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
23+
path: core-sans-a-fonts
24+
- name: Install Fonts
25+
run: |
26+
sudo cp -r core-sans-a-fonts/* /usr/local/share/fonts/
27+
sudo fc-cache -f -v
28+
fc-list | grep "Core Sans"
1829
- uses: actions-rust-lang/setup-rust-toolchain@v1
1930
- name: Install exercise plugin
2031
run: cargo install --path helpers/mdbook-exercise-linker

book/book.toml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,18 @@ metadata-file = "metadata.yml"
3333

3434
[output.pandoc.profile.pdf.variables]
3535
# You can get these fonts here: https://fonts.google.com/selection?query=noto+color+
36-
mainfont = "Noto Serif"
37-
sansfont = "Noto Sans"
36+
mainfont = "CoreSansA45.ttf"
37+
mainfontoptions = [
38+
"BoldFont=CoreSansA65.ttf",
39+
"ItalicFont=CoreSansA45It.ttf",
40+
"BoldItalicFont=CoreSansA65It.ttf"
41+
]
42+
sansfont = "CoreSansA45.ttf"
43+
sansfontoptions = [
44+
"BoldFont=CoreSansA65.ttf",
45+
"ItalicFont=CoreSansA45It.ttf",
46+
"BoldItalicFont=CoreSansA65It.ttf"
47+
]
3848
monofont = "Noto Sans Mono"
3949
mainfontfallback = ["Noto Color Emoji:mode=harf"]
4050
sansfontfallback = ["Noto Color Emoji:mode=harf"]
@@ -63,8 +73,18 @@ pdf-engine = "lualatex"
6373

6474
[output.pandoc.profile.paperback.variables]
6575
# You can get these fonts here: https://fonts.google.com/selection?query=noto+color+
66-
mainfont = "Noto Serif"
67-
sansfont = "Noto Sans"
76+
mainfont = "CoreSansA45.ttf"
77+
mainfontoptions = [
78+
"BoldFont=CoreSansA65.ttf",
79+
"ItalicFont=CoreSansA45It.ttf",
80+
"BoldItalicFont=CoreSansA65It.ttf"
81+
]
82+
sansfont = "CoreSansA45.ttf"
83+
sansfontoptions = [
84+
"BoldFont=CoreSansA65.ttf",
85+
"ItalicFont=CoreSansA45It.ttf",
86+
"BoldItalicFont=CoreSansA65It.ttf"
87+
]
6888
monofont = "Noto Sans Mono"
6989
mainfontfallback = ["Noto Color Emoji:mode=harf"]
7090
sansfontfallback = ["Noto Color Emoji:mode=harf"]

0 commit comments

Comments
 (0)