I am trying to emulate the font below:
Apparently it can be done with:
\renewcommand*{\firstnamefont}{\fontsize{34}{36}\sffamily\mdseries\upshape}
This is from the moderncv
package, more specifically the file moderncvstyleclassic.sty
In my case, I thought I could get it with:
{\fontencoding{T1}\fontfamily{cmss}\fontseries{b}\selectfont This is a test}
But it doesn't work. Instead I get:
which by the way is also what I get with:
{\fontencoding{T1}\fontfamily{cmss}\fontseries{m}\selectfont This is a test}
Notice that the difference between both code snippets is using \fontseries{b}
instead of \fontseries{m}
With this:
- How can I get the font in the first image?
- Why is it that
\fontseries{b}
and\fontseries{m}
yield the same result above?
Update 1:
If I use
{\fontencoding{T1}\fontfamily{cmss}\fontseries{bx}\selectfont This is a test}
I get:
which is still different from what I show in the top image.
Best Answer
Use
lmss
instead ofcmss
: