1

Whenever I include the fontspec package in my document, all text gets slightly bolder. How do I archieve the old look with fontspec?

Here is a minimal example:

\documentclass[a4paper]{article}

\begin{document}
\textbf{Without fontspec}\\
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{document}

enter image description here

\documentclass[a4paper]{article}
\usepackage{fontspec}


\begin{document}
\textbf{With fontspec}\\
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{document}

enter image description here

The problem stays the same no matter if I compile with LuaLaTex or XeLaTex.

9
  • Both files are compiled with Xe/LuaLaTeX?
    – Bernard
    Jun 27, 2017 at 10:41
  • Yes. The problem occurs with both of them.
    – Fii
    Jun 27, 2017 at 10:43
  • I have no problem with LuaLaTeX, both look the same. Maybe you should update your distribution? Jun 27, 2017 at 10:51
  • 2
    in current (post 2015) releases the same fonts are used (earlier than that adding fontspec would have switched from computer modern to latin modern) which latex release have you got? Jun 27, 2017 at 10:52
  • 1
    @jmb To get the current version of texlive, see tex.stackexchange.com/questions/1092/… Jun 27, 2017 at 11:02

1 Answer 1

1

Open the PDF, which has been compiled without the package fontspec. Have a look into the Meta-Data. Many PDF-Viewers display the metadata after "Ctrl-d". Metadata include the fonts used in the document. Now you know the font names.

Then just use them with fontspec, \setmainfont whatever.

Updating to texlive 2017 (that is: installing texlive 2017) isn't done in ten minutes and under very unlucky circumstances you might have to change something in your document (the change isn't the problem, but to find out about it...).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .