doc: use more modern fonts
Use Noto as baseline font and Inconsolata Nerd Font for source code.
These are both esthetically pleasing and have good Unicode coverage.
NOTE: Unsupported characters (i.e. emojis, at the time of this commit)
are rendered as tofu (i.e. a square).
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
diff --git a/doc/conf.py b/doc/conf.py
index 1ee3a60..dcdbd22 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -5,6 +5,7 @@
import os
from pathlib import Path
import re
+import textwrap
from sphinx.cmd.build import get_parser
import sphinx_rtd_theme
@@ -182,7 +183,11 @@
"papersize": "a4paper",
"maketitle": open(ZEPHYR_BASE / "doc" / "_static" / "latex" / "title.tex").read(),
"preamble": open(ZEPHYR_BASE / "doc" / "_static" / "latex" / "preamble.tex").read(),
- "fontpkg": r"\usepackage{charter}",
+ "fontpkg": textwrap.dedent(r"""
+ \usepackage{noto}
+ \usepackage{inconsolata-nerd-font}
+ \usepackage[T1]{fontenc}
+ """),
"sphinxsetup": ",".join(
(
# NOTE: colors match those found in light.css stylesheet