mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-04 07:24:22 +02:00
set fallback fonts for PDF rendering (#1728)
Once a new version of Pandoc is released that includes https://github.com/jgm/pandoc/pull/9204 and https://github.com/jgm/pandoc/pull/9353 (both merged), this will fix the emoji and symbol rendering issues in #1708. It doesn't seem to be possible to set fallback fonts with `luatexja-fontspec` (used to configure CJK fonts), which results in some missing symbols in the translations but at least renders the emoji properly. Closes #1708
This commit is contained in:
parent
e362b44b66
commit
97ac0e7caf
4
.github/workflows/install-mdbook/action.yml
vendored
4
.github/workflows/install-mdbook/action.yml
vendored
@ -19,8 +19,8 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
cargo install mdbook-pandoc --locked --version 0.5.0
|
cargo install mdbook-pandoc --locked --version 0.5.0
|
||||||
sudo apt-get install -y texlive texlive-luatex texlive-lang-cjk librsvg2-bin fonts-noto
|
sudo apt-get install -y texlive texlive-luatex texlive-lang-cjk librsvg2-bin fonts-noto
|
||||||
curl -LsSf https://github.com/jgm/pandoc/releases/download/3.1.11/pandoc-3.1.11-linux-amd64.tar.gz | tar zxf -
|
curl -LsSf https://github.com/jgm/pandoc/releases/download/3.1.12.2/pandoc-3.1.12.2-linux-amd64.tar.gz | tar zxf -
|
||||||
echo "$PWD/pandoc-3.1.11/bin" >> $GITHUB_PATH
|
echo "$PWD/pandoc-3.1.12.2/bin" >> $GITHUB_PATH
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Install mdbook-i18n-helpers
|
- name: Install mdbook-i18n-helpers
|
||||||
|
@ -34,6 +34,12 @@ pdf-engine = "lualatex"
|
|||||||
mainfont = "Noto Serif"
|
mainfont = "Noto Serif"
|
||||||
sansfont = "Noto Sans"
|
sansfont = "Noto Sans"
|
||||||
monofont = "Noto Sans Mono"
|
monofont = "Noto Sans Mono"
|
||||||
|
mainfontfallback = ["NotoColorEmoji:mode=harf"]
|
||||||
|
monofontfallback = [
|
||||||
|
"NotoColorEmoji:mode=harf",
|
||||||
|
"NotoSansMath:",
|
||||||
|
"NotoSansMonoCJKSC:",
|
||||||
|
]
|
||||||
geometry = ["margin=1.25in"]
|
geometry = ["margin=1.25in"]
|
||||||
linkcolor = "blue"
|
linkcolor = "blue"
|
||||||
urlcolor = "red"
|
urlcolor = "red"
|
||||||
|
Loading…
Reference in New Issue
Block a user