1. Vedran Miletić
  2. beamer
  3. Issues
Issue #252 resolved

Math font size warning using lmodern

Cédric Bamps
created an issue

Minimal example:

\documentclass{beamer}
\usepackage{lmodern}

%\AtBeginDocument{
% \SetSymbolFont{operators}{normal}{OT1}{\sfdefault}{m}{n}%
%}

\begin{document}
\begin{frame}\relax
{\Tiny $foo$}
\end{frame}
\end{document}

That results in this output:

LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available
(Font)              size <5> substituted on input line 11.


LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <2.79999> not available
(Font)              size <5> substituted on input line 11.


LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <2> not available
(Font)              size <5> substituted on input line 11.

Uncommenting the AtBeginDocument block solves the issue by properly loading lmodern fonts (\sfdefault is set to lmss by lmodern.sty). This overrides a line in beamerbasefont.sty that sets the font to cmss instead of using \sfdefault, and I suppose computer modern does not have the font size used in this example.

Comments (1)

  1. Log in to comment