I want to add some custom font into my latex build process in macOS 13.3, this is the command I am using right now:
\setmainfont[
Path = { /Users/xiaoqiangjiang/.fonts/ },
Extension = .otf ,
BoldFont = HelveticaNeueLTPro-Md.otf ,
]{HelveticaNeueLTPro-Roman.otf}
when I using the full path like this /Users/xiaoqiangjiang/.fonts/
, it works fine. But when I replace the path to ~/.fonts/
, the texstudio shows could not found the fonts. Does the setmainfont command path support the ~
? what should I do to fixed this issue?
~
. Install the fonts so that your system can find them, then xelatex and lualatex will find them too.