I am currently creating a LaTeX class that my students can use for their theses. For this, I would like to use fonts that I personally find very appealing. Unfortunately, I have installed several fonts on my system over the past few months and now I am unsure which ones are included by default in LaTeX distributions.
Does anyone know which of the fonts listed below need to be installed manually?
Additionally, I would be interested to know if there is a suitable combination to my standard set "XCharter, Fira Sans, DejaVu Sans Mono" that is included by default.
Here is my MWE:
\documentclass[margin=1cm,varwidth]{standalone}
\usepackage{fontspec}
% Main font with fallback options
\IfFontExistsTF{XCharter}{
\setmainfont{XCharter}
}{
\IfFontExistsTF{QTPalatine}{
\setmainfont{QTPalatine}
}{
\setmainfont{Latin Modern Roman}
}
}
% Sans font with fallback options
\IfFontExistsTF{Fira Sans}{
\setsansfont{Fira Sans}
}{
\IfFontExistsTF{Lato}{
\setsansfont{Lato}
}{
\setsansfont{Latin Modern Sans}
}
}
% Mono font with fallback options
\IfFontExistsTF{DejaVu Sans Mono}{
\setmonofont{DejaVu Sans Mono}[Scale=0.9]
}{
\IfFontExistsTF{JetBrains Mono}{
\setmonofont{JetBrains Mono}
}{
\IfFontExistsTF{Inconsolata}{
\setmonofont{Inconsolata}
}{
\setmonofont{Latin Modern Mono}
}
}
}
\begin{document}
The quick brown fox jumps over the lazy dog
\textsf{The quick brown fox jumps over the lazy dog}
\texttt{The quick brown fox jumps over the lazy dog}
\end{document}