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?





  • 4
    See the fontspec documentation (babelfont uses fontspec) Nov 20, 2022 at 10:16
  • @UlrikeFischer Is the babel command \babelfont{rm}{MyFont.ttf} interchangeable with fontspec's \setmainfont{MyFont.ttf}, \babelfont{sf}{MyFont.ttf} with \setsansfont{MyFont.ttf}, and \babelfont{tt}{MyFont.ttf} with \setmonofont{MyFont.ttf}?
    – Evan Aad
    Nov 20, 2022 at 13:55
  • 1
    no, babel adds some functionality like automatically changing fonts with the script, but the fontspec options can be used in the optional argument of babelfont. Nov 20, 2022 at 13:58
  • @UlrikeFischer Thanks. By the way, the fontspec package has a silent option to drown warnings. I tried passing this option to the babel package to no avail. Is there a similar option for babel?
    – Evan Aad
    Nov 20, 2022 at 14:36

1 Answer 1


Following Ulrike Fischer's hint, here's one way of setting up a main Hebrew font using babel's \babelfont command, when the four font files are in the Fonts subdirectory of the working directory, and are named myfont-regular.ttf, myfont-italic.ttf, myfont-bold.ttf, and myfont-bold-italic.ttf:

   Path = Fonts/ ,
   Extension = .ttf ,
   UprightFont = *regular ,
   BoldFont = *bold ,
   ItalicFont = *italic ,
   BoldItalicFont = *bold-italic

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .