QUESTION :
MathTextWarning: Font ‘default’ does not have a glyph for ‘-‘ [U+2212], substituting with a dummy symbol.
MathTextWarning)
ANSWER :
You’re probably using the “wrong” minus sign. Try using U+002D, or HYPEN-MINUS
instead as this is more commonly used as the minus sign for programming languages.