I am building a document class and I am using these fonts. Unfortunately, after an update the style naming convention changed slightly e.g. Medium is now Medm and SemiBold is now SmBld. This has not been updated on Overleaf though and when compiling there, the process break. How can I make it compile consistently across platforms.
Minimum example:
\documentclass{article}
\usepackage{fontspec}
% This works locally, but breaks on Overleaf
% \setmainfont{IBM Plex Sans SmBld}
% This works on Overleaf but breaks locally
\setmainfont{IBM Plex Sans SemiBold}
\begin{document}
Hello with IBM Plex Semi Bold!
\end{document}
Fontsor something and use the optional argumentPath=./Fonts/IBM Plex Sans SmBld/) – koleygr May 03 '23 at 12:45\IfFontExistsTFas mentioned in the first linked comment. I use it for a similar purpose (but nothing to do with Overleaf). It works. – rallg May 03 '23 at 19:12