I would like to use KOMA script with a fontsize of 13pt (see very much related question here: Koma Script and real 13pt). Consider the following document:
\documentclass[fontsize=13pt,DIV=12]{scrartcl}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\begin{document}
test
\end{document}
I get the following warnings:
Class scrartcl Warning: Using fallback calculation to setup font sizes
(scrartcl) for basic size `13pt' on input line 1564.
LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <13> not available
(Font) size <12> substituted on input line 1564.
LaTeX Font Warning: Font shape `T1/cmr/m/n' in size <13> not available
(Font) size <12> substituted on input line 100.
While I absolutely understand the first warning (I'm okay with calculated font sizes) I don't see why LaTeX is complaining about missing font shapes in the computer modern font (I understand cmr stands for computer modern roman?).
I can get rid of the font shape warnings by using \RequirePackage{fix-cm} before the documentclass, but that seems strange to me (I want to use lmodern, not computer modern).
I guess that it is save to ignore the warnings (the PDF does not include cm), but I would still like to understand what's going on. I tried to defer the change in fontsize until after lmodern has been loaded, but it did not help.
[ Related question in german with an answer by Markus Kohm, suggesting to use lmodern: http://www.komascript.de/node/1137 ]
\normalfontcommand is what I was missing... I was expecting the lmodern package to set the defaults somehow (but I guess that only happens at the beginning of the document). So why would you not recommend it? Because\normalfontshould not be used in the header? – shark.dp Apr 28 '15 at 09:47\normalfontis issued at\begin{document}and issuing it in the preamble is not the best thing to do, but it depends on several factors. The Koma classes should try doing the size computations at that place (after\normalfontis issued). Or just live with the warnings.;-)– egreg Apr 28 '15 at 09:50KOMAoption, additionally addrecalctypeareaas the fontsize is as well given to packagetypearea. – Johannes_B Apr 28 '15 at 09:56