[Tex/LaTex] Changing KOMA Script font family

fontskoma-scriptsans-serif

I'm using KOMA-Script and I would like to know how can I change the default font to FreeSans, or any other font-family? Also, how can I change all text to sans-serif?

Best Answer

For fonts that are packaged for use with LaTeX, the Font Catalogue usually tells you how to use them.

If you specifically want to use FreeSans (which, as far as I know, has not been packaged for LaTeX), the easiest way is to use the fontspec package and XeLaTeX or LuaLaTeX.

% Compile with xelatex or lualatex.
\documentclass{article}
\usepackage{lipsum}% for testing

\usepackage{fontspec}
\setmainfont{FreeSans}

\begin{document}
\lipsum
\end{document}

example

Related Question