Skip to content

Building docs fails with Package fontspec Error: The font "DejaVu Sans" cannot be found.

$ make sphinx-docs-manual LOC=$PETSC_DIR
Running Sphinx v2.4.4

Found DOT install: /usr/local/bin/dot

loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [latex]: all documents
updating environment: 0 added, 0 changed, 0 removed
WARNING: duplicate label for keys bgms98 and bgms98
WARNING: duplicate label for keys petsc-efficient and petsc-efficient
looking for now-outdated files... none found
processing manual.tex... manual/index manual/introduction manual/about_this_manual manual/getting_started manual/programming manual/vec manual/mat manual/ksp manual/snes manual/ts manual/sensitivity_analysis manual/high_level_mg manual/dmplex manual/additional manual/fortran manual/matlab manual/profiling manual/performance manual/other manual/advanced manual/tests manual/acknowledgements 
resolving references...
done
writing... done
copying images... [100%] manual/images/numa.pdf                                                                                                 
copying TeX support files... copying TeX support files...
done
copying additional files...  manual/anl_tech_report/ArgonneLogo.pdf manual/anl_tech_report/ArgonneReportTemplateLastPage.pdf manual/anl_tech_report/ArgonneReportTemplatePage2.pdf manual/anl_tech_report/first.inc manual/anl_tech_report/last.incdone
build succeeded, 2 warnings.

The LaTeX files are in ../../../docs/sphinx_docs/latex.
Run 'make' in that directory to run these through (pdf)latex
(use `make latexpdf' here to do that automatically).
latexmk -pdf -dvi- -ps-  'manual.tex'
Latexmk: This is Latexmk, John Collins, 17 March 2019, version: 4.63b.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': The following rules & subrules became out-of-date:
      'pdflatex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'xelatex   -recorder  "manual.tex"'
------------
This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./manual.tex
LaTeX2e <2018-12-01>
(./sphinxmanual.cls
Document Class: sphinxmanual 2019/12/01 v2.3.0 Document class (Sphinx manual)
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/report.cls
Document Class: report 2018/09/03 v1.4i Standard LaTeX document class
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/size10.clo)))
(/usr/local/texlive/2019/texmf-dist/tex/latex/cmap/cmap.sty

Package cmap Warning: pdftex not detected - exiting.

) (/usr/local/texlive/2019/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def)))
(/usr/local/texlive/2019/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/tuenc.def))
(/usr/local/texlive/2019/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/polyglossia/polyglossia.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/makecmds/makecmds.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2019/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2019/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/usr/local/texlive/2019/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/local/texlive/2019/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/polyglossia/gloss-english.ldf)kpathsea:make_tex: Invalid filename `DejaVu Sans', contains ' '


! Package fontspec Error: The font "DejaVu Sans" cannot be found.

For immediate help type H <return>.
 ...                                              
                                                  
l.24 \setmonofont
                 {DejaVu Sans Mono}
? 

Does this font need to be used? This is on Mac with the latest OS and the last MacTex install

TexLife Utility says there is installed support for DejaVu

Duckduckgo finds a few things about this missing font but no proper instructions on how to get it to work.

The is some claim that xetex does not have access to the same fonts as the rest of tex on the Mac. Do we have to use xetex?