How do you change the document font in LaTeX?

I found the solution thanks to the link in Vincent's answer.

\renewcommand

This changes the default font family to sans-serif.

1,517 3 3 gold badges 15 15 silver badges 27 27 bronze badges answered May 18, 2009 at 13:10 544k 198 198 gold badges 657 657 silver badges 724 724 bronze badges The font used is Helvetica as explained in stat.berkeley.edu/~paciorek/computingTips/… Commented Jul 9, 2013 at 10:15

@nalply On my system it is Computer Modern Sans, most definitely not Helvetica (which is not available for free by the way). The source you cite is wrong.

Commented May 25, 2016 at 12:28 What if you want a specific font, not a random font from the family? Commented Oct 11, 2018 at 0:21

Other options apart from sfdefault are rmdefault (serif) and ttdefault (monospaced), according to this.

Commented Aug 23, 2020 at 18:22 Works partially. \textsc<> has serifs; package is RevTeX in my use case. – user5248982 Commented Jul 30, 2023 at 11:34

For a different approach, I would suggest using the XeTeX or LuaTex system. They allow you to access system fonts (TrueType, OpenType, etc) and set font features. In a typical LaTeX document, you just need to include this in your headers:

\usepackage \defaultfontfeatures \setmainfont \setmonofont

It's the fontspec package that allows for \setmainfont and \setmonofont . The ability to choose a multitude of font features is beyond my expertise, but I would suggest looking up some examples and seeing if this would suit your needs.

Just don't forget to replace your favorite latex compiler by the appropriate one (xelatex or lualatex).