LaTeX Font Warning: Font shape `…' in size <…> not available size <…> substituted on input line ….Die Warnung tritt häufig dann auf, wenn man Option fontsize mit anderen Werten als 10pt, 11pt oder 12pt verwendet, beispielsweise führt:
\documentclass[fontsize=13bp,DIV=calc]{scrbook}
\usepackage{blindtext}
\begin{document}
\blinddocument
\end{document}
bei Verwendung von PDFLaTeX zu den Warnungen:
LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <13.04874> not available
(Font) size <12> substituted on input line 4.
LaTeX Font Warning: Font shape `OT1/cmss/bx/n' in size <13.04874> not available
(Font) size <12> substituted on input line 4.
LaTeX Font Warning: Font shape `OT1/cmss/bx/n' in size <27.06314> not available
(Font) size <24.88> substituted on input line 4.
LaTeX Font Warning: Font shape `OT1/cmss/bx/n' in size <18.7902> not available
(Font) size <17.28> substituted on input line 4.
LaTeX Font Warning: Font shape `OT1/cmss/bx/n' in size <15.65843> not available
(Font) size <14.4> substituted on input line 4.
LaTeX Font Warning: Font shape `TS1/cmr/m/n' in size <13.04874> not available
(Font) size <12> substituted on input line 4.
LaTeX Font Warning: Font shape `OT1/cmr/m/sl' in size <13.04874> not available
(Font) size <12> substituted on input line 4.
LaTeX Font Warning: Font shape `OT1/cmr/bx/n' in size <13.04874> not available
(Font) size <12> substituted on input line 4.
und zusammenfassend:
LaTeX Font Warning: Size substitutions with differences
(Font) up to 2.18314pt have occurred.
Ursache ist hier, dass die OT1 codierte Standardschrift Computer Modern Roman (cmr) und Computer Modern SansSerif (cmss) in allen Schnitten (also medium, bold extended, slanted etc.) nur in diskreten Größen verfügbar ist. Die mit fontsize=13bp angeforderte Größen angefangen mit 13.04874pt sind hingegen nicht verfügbar. LaTeX wählt daher (nach bestimmten, u.a. in ot1cmr.fd festgelegten Regeln) andere Größen aus und gibt entsprechende Warnung aus. Durch Laden einer skalierbaren Schrift, beispielsweise:
\documentclass[fontsize=13bp,DIV=calc]{scrbook}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{blindtext}
\begin{document}
\blinddocument
\end{document}
reduziert sich die Anzahl der Warnung auf:
LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <13.04874> not available
(Font) size <12> substituted on input line 2712.
und
LaTeX Font Warning: Font shape `T1/cmr/m/n' in size <13.04874> not available
(Font) size <12> substituted on input line 116.
Die erste der beiden ist darüber hinaus irrelevant, da die dort gemeldete Schrift nicht wirklich verwendet wird.
Die Warnungen verschwinden komplett, wenn man stattdessen für das erste Beispiel LuaLaTeX verwendet, da dann bereits in der Voreinstellung nur noch skalierbare Fonts zum Einsatz kommen.