[Tex/LaTex] Use medium weight Fira Font

fonts

I would like to use the medium weight Fira font in Latex but textmd doesn't seem to do anything. What am I doing wrong?

\usepackage[defaultsans]{FiraSans}

Hello \textmd{World}.

Hello \textbf{World}.

Here is what it looks like. As you can see, the first "World" is not any bolder than the regular text.

enter image description here

Best Answer

The FiraSans package uses mdweight to set regular text, so calling \textmd explicitly has no effect whatsoever. If you want to use a specific weight explicitly, you can use one of the commands defined in FiraSans.sty:

  • \firathin
  • \firaultralight
  • \firaextralight
  • \firalight
  • \firabook
  • \firamedium
  • \firasemibold
  • \firaextrabold
  • \firaheavy

Example:

\documentclass{article}
\usepackage[sfdefault]{FiraSans}

\begin{document}

Hello {\firathin World}.

Hello {\firaultralight World}.

Hello {\firaextralight World}.

Hello {\firalight World}.

Hello {\firabook World}.

Hello {\firamedium World}.

Hello {\firasemibold World}.

Hello {\firaextrabold World}.

Hello {\firaheavy World}.

\end{document}

enter image description here