I'm using mathspec to use an .otf font in Overleaf via the command:
setromanfont{myfont}[Path=./fonts/myfont, Extension = .otf, Uprightfont=*-regular]
myfont-regular.otf being the font file placed in a folder pointed at by the Path=.
which works great for all my normal text. However there is also a math version of the font that I would like to use for math: myfont-math.otf however I cannot find a way to import it with the mathspec package, all my attempts at using the \setmath(s)font have been futile. I've looked around and found some articles from Overleaf with instructions of how to use a .ttf font with tfm/map/type1 files but not much so far on how to do this is XeLaTeX. It might help to mention that I have all these files for my font as it has been designed to work with TeX.
Can anyone guide me in the right direction of how to do this?
unicode-mathrather thanmathspec– David Carlisle Feb 28 '22 at 15:20