I have downloaded four .ttf
font files for the Hebrew language. The files define variants of the same font. The variants are: regular, oblique, bold, and bold & oblique. My LaTeX document uses the babel
package as the language manager, and lualatex
as the typesetting engine. I have placed the four .ttf
files in my working directory. How can I set things up in such a way that the following document uses my newly downloaded font?
\documentclass{article}
\usepackage[bidi=basic]{babel}
\babelprovide[main,import]{hebrew}
%\babelfont{rm}{?}
\begin{document}
עברית\\
ֿ\textbf{עברית}\\
\textit{עברית}\\
\textit{\textbf{עברית}}\\
\textbf{\textit{עברית}}
\end{document}
babel
command\babelfont{rm}{MyFont.ttf}
interchangeable withfontspec
's\setmainfont{MyFont.ttf}
,\babelfont{sf}{MyFont.ttf}
with\setsansfont{MyFont.ttf}
, and\babelfont{tt}{MyFont.ttf}
with\setmonofont{MyFont.ttf}
?fontspec
package has asilent
option to drown warnings. I tried passing this option to thebabel
package to no avail. Is there a similar option forbabel
?