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>
This commit is contained in:
parent
201b666ecb
commit
472def94e7
1 changed files with 6 additions and 1 deletions
|
@ -5,6 +5,7 @@ import sys
|
|||
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 @@ latex_elements = {
|
|||
"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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue