I want to typeset mostly text with about four math formulae in Bitstream Charter font.
Here is the MWE:
\definefontfamily[mainface][rm][charter] \definefontfamily[mainface][ss][DejaVuSans] \definefontfamily[mainface][tt][Latin Modern Mono] [features=none] \definefontfamily[mainface][mm][charter] \setupbodyfont[mainface,rm,12bp] \starttext \input tufte \startformula \mathrm {NPV} =\sum _{n=0}^{N}{\frac{C_{n}}{(1+r)^{n}}}=0 \stopformula \stoptext The document compiles but it uses LM Roman 10 in body and Latin Modern Math in math formulae.
So I tried few things:
I used xcharter for rm and mm font. Didn't work. The error message was:
Sorry, but I can't typeset math unless various parameters have been set. This is normally done by loading special math fonts into the math family slots. Your font set is lacking at least the parameter mentioned earlier. mtx-context | fatal error: return code: 1 I used xcharter for rm and charter for mm. The document compiled, body was in Extra Charter, and math formulae were in Latin Modern Math.
I tried other math fonts for mm from the list in ConTeXt Garden, and the document either compiled with wrong font, or failed with same error message.
How can I use Bitstream Charter, please? I am using ConTeXt LMTX Standalone (updated very recently). Thank you.