Difference in font for sans serif

fonts

I'm looking to use a sans serif font that looks like this

enter image description here

but when using a particular LaTeX template, the same sans serif font looks like the following:

enter image description here

which is not the font I'm looking for; it's too thin despite it already being in bold face. The culprit seems to be this line

\usepackage[T1]{fontenc}

which, when deleted, causes the 2nd font to look like the first font. Why is this the case?

Best Answer

The fonts used with OT1 and T1 encoding are different as the cm-super fonts used for T1 cover much more font sizes:

\documentclass{article}

\begin{document}
\Huge\bfseries\sffamily
Investigation

\fontencoding{T1}\selectfont
Investigation
\end{document}

enter image description here

The first font is a 10pt-font cmssbx10.pfb which has been scaled up and so is very bold, the second is a font specifically designed for this font size sfsx2488.pfb.

You could force the use of scaled up fonts with T1-encoding too, but imho it is better to use the properly designed fonts.

Related Question