I am trying to typeset a document with multiple languages, and I need to use a different font for one of the languages because of the lack of boldface for said language in the global font.
I tried to do the following
\documentclass{article}
\usepackage[T2A,T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[serbianc,french,english]{babel}
\babelfont{rm}{Linguistics Pro}
\babelfont[Language=serbian]{tt}{FreeSerif}
\begin{document}
\Serbianc{Hello, \texttt\Huge{Поздрав}!}
\end{document}
However, i get an "undefined control sequence" error. I have tried to run the example from the babel documentation, Section 1.14, and I still received the same error. I have no idea what is going on.
Is there a way to either load \babelfont, or to do the thing that I need in any other way?


\babelfont[serbianc]{tt}{FreeSerif}Don't loadfontencnorinputenc. – egreg Mar 08 '22 at 21:48\babelfont{tt}before\babelfont[serbian]{tt}. – Davislor Mar 09 '22 at 06:25\babelfontinstruction is wrong: it should be\babelfont[serbianc]{tt}{FreeSerif}. – egreg Mar 09 '22 at 10:47\texttt\Huge{Поздрав}is the same as\texttt{\Huge}{Поздрав}. You might want to use\texttt{\Huge{Поздрав}}– cgnieder Mar 09 '22 at 11:05