Skip to content

Commit 472def9

Browse files
kartbenjhedberg
authored andcommitted
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é <[email protected]>
1 parent 201b666 commit 472def9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66
from pathlib import Path
77
import re
8+
import textwrap
89

910
from sphinx.cmd.build import get_parser
1011
import sphinx_rtd_theme
@@ -182,7 +183,11 @@
182183
"papersize": "a4paper",
183184
"maketitle": open(ZEPHYR_BASE / "doc" / "_static" / "latex" / "title.tex").read(),
184185
"preamble": open(ZEPHYR_BASE / "doc" / "_static" / "latex" / "preamble.tex").read(),
185-
"fontpkg": r"\usepackage{charter}",
186+
"fontpkg": textwrap.dedent(r"""
187+
\usepackage{noto}
188+
\usepackage{inconsolata-nerd-font}
189+
\usepackage[T1]{fontenc}
190+
"""),
186191
"sphinxsetup": ",".join(
187192
(
188193
# NOTE: colors match those found in light.css stylesheet

0 commit comments

Comments
 (0)