How to change the document font in LaTeX fontslatex How do you change the font for the whole document to sans-serif (or anything else)? Best Solution I found the solution thanks to the link in Vincent's answer. \renewcommand{\familydefault}{\sfdefault} This changes the default font family to sans-serif. Related SolutionsHtml – How to add some non-standard font to a website This could be done via CSS: <style type="text/css"> @font-face { font-family: "My Custom Font"; src: url(http://www.example.org/mycustomfont.ttf) format("truetype"); } p.customfont { font-family: "My Custom Font", Verdana, Tahoma; } </style> <p class="customfont">Hello world!</p> It is supported for all of the regular browsers if you use TrueType-Fonts (TTF), the Web Open Font Format (WOFF) or Embedded Opentype (EOT). Different font for all headings in LaTeX You can use the sectsty LaTeX package. Put this in the preamble: \usepackage{sectsty} \allsectionsfont{\sffamily} Related QuestionCss – How to add multiple font files for the same fontAndroid – How to change the font on the TextViewInserting code in this LaTeX document with indentationJava – How to change font size in Eclipse for Java text editorsCss – How to import Google Web Font in CSS file
Best Solution
I found the solution thanks to the link in Vincent's answer.
This changes the default font family to sans-serif.