This is a followup question on: ASCII text set in Greek script when using \usepackage[greek]{babel}
When we have a MWE like:
\documentclass[twoside]{book}
\usepackage{fontspec}
\usepackage[greek]{babel}
\usepackage{alphabeta}
\setmainfont{Libertinus Serif}
\renewcommand{\familydefault}{\sfdefault}
\begin{document}
{My Project }
{Δημιουργήθηκε από Doxygen 1.8.19}
\end{document}
we get:
We see that here part of the second line is missing, we expected:
This result is obtained by commenting out the line: \renewcommand{\familydefault}{\sfdefault}
so an easy solution would be to do this also in the production code, but I hesitate as this line has been added in 2013 and it is unknown why it is added (doxygen was not yet in git at that moment, so individual commits were nor registered).
To give a bit side information, it looks like that the following lines were added at the same moment as well:
\usepackage[T1]{fontenc}
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
\usepackage{amssymb}
\usepackage{sectsty}
\renewcommand{\familydefault}{\sfdefault}
\allsectionsfont{%
\fontseries{bc}\selectfont%
\color{darkgray}%
}
- any idea why such a line
\renewcommand{\familydefault}{\sfdefault}
could have been added? - any suggestions for improvement of this line
\renewcommand{\familydefault}{\sfdefault}
so the functionality remains but the side effect disappears?
Libertinus Sans
but now the renew line still gives a problem, commenting that line helps also the line\usepackage[T1]{fontenc}
is problematic but I didn't see a negative effect yet commenting it as well. As the code is generated is there a way to check what the main font is or do I have to set a variable that I can test?