I have resolved my earlier problem with LuaLaTeX not loading fonts, but now the \mathbf command does not produce bold math font.
As an example, the following code:
\[
x + y = 10 \, \mathbf{bold text} \, \mathit{italic text} \, \mathrm{math text}
\]
produces the following:
\mathbf seems to have no effect. I looked through this page to setup bold/italic font faces for the math font I chose since it doesn't seem there are other styles besides regular, but \mathbf does not appear.
Here is my current preamble snippet with respect to fonts:
% Font / LuaLaTeX setup
\RequirePackage{iftex}
\usepackage{iftex}
\ifluatex
\RequirePackage{fontspec}
\RequirePackage{unicode-math}
\unimathsetup{math-style=TeX}
\RequirePackage[english]{babel}
\defaultfontfeatures{Ligatures=TeX, Scale=MatchLowercase}
\setmainfont[
Path=/usr/share/fonts/opentype/linux-libertine/,
Extension=.otf,
BoldFont=LinLibertine_RB,
ItalicFont=LinLibertine_RI,
]{LinLibertine_R}
\setsansfont[
Path=/mnt/c/Users/user/Appdata/Local/Microsoft/Windows/Fonts/,
Extension=.otf,
BoldFont=Kurier-Bold,
ItalicFont=Kurier-Italic,
]{Kurier-Regular}
\setmonofont[
Path=/mnt/c/Users/user/Appdata/Local/Microsoft/Windows/Fonts/,
Extension=.ttf,
BoldFont=Inconsolata-Bold,
]{Inconsolata-Regular}
\setmathfont{LibertinusMath-Regular.otf}
\setmathrm[BoldFont=LinLibertine_RB.otf]{LinLibertine_R.otf}
\setboldmathrm{LinLibertine_RB.otf}
\fi
% regular times
\ifpdftex
\RequirePackage[T1]{fontenc}
\RequirePackage{newtxtext}
\RequirePackage[smallerops]{newtxmath}
\fi
I looked through the documentation for fontspec, but I couldn't find anything regarding \mathbf. If there's something I missed or something that can fix this, that would be great. Thanks!


LibertinusMath-Regulareven has bold characters? If those are missing from the font, LaTeX can't make them up. – Miyase Aug 02 '22 at 00:05boldmathrm. Perhaps that doesn't do the trick? – Revise Aug 02 '22 at 00:34fontspec's documentation, and page 18 the description of\setboldmathrmis phrased a bit strangely; it's not obvious that it works with\mathbf. – Miyase Aug 02 '22 at 06:46