5

I am looking for various unicode maths fonts to use with Arial. I have tried fira-math. But, there are problems in it.. So, I am looking for alternatives. Google has released Noto Sans Math font available here. I tried this mwe.

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{NotoSansMath-Regular.ttf}
\setmainfont{Arial}[Scale=1.1]
\begin{document}
    \(\alpha\beta,\gamma\) This is a test.
\end{document}

It compiles without errors, but it quietly substitutes latin-modern for Noto Sans Math. There is a warning in the log file which says

Package fontspec Warning: Font "NotoSansMath-Regular" does not contain
(fontspec)                requested Script "Math".

I checked the font in microsoft word. It does have mathemtical symbols. So, what can be the problem? Curiously, the documentation for unicode-maths gives a list of fonts that support uncode-math not the other way around. Can anything be done, eg. using font forge, so that the font supports unicode-maths? How complicated is this to do?

4
  • 1
    the Math table does not refer to the characters provided but rather the internal table of that name that provides all the parameters needed for math typesetting. If a font does not have this then luatex/xetex will need the classic tex math font tfm metrics and can't be used with unicode-math Commented Oct 31, 2021 at 8:55
  • 1
    github.com/googlefonts/noto-fonts/issues/330 Commented Oct 31, 2021 at 8:57
  • 1
    note you could use fira math as the main math cont and still pull symbols from Moto sans see the range feature Commented Oct 31, 2021 at 9:16
  • You might try KPmath-sans, or Lato Math. Despite the name, Noto Sans Math does not actually use sans-serif math symbols.
    – Davislor
    Commented Jun 14 at 8:54

2 Answers 2

8

Version 3.000 of Noto Sans Math has reworked and improved MATH table (which was first introduced in version 2.539), and should generally work better with unicode-math package:

https://github.com/notofonts/math/releases/tag/NotoSansMath-v3.000

Test document rendered with v3.000 of the font

1
  • 2
    This looks really nice, thanks for your efforts here, good to see another viable sans serif option for math. Commented Jun 14 at 10:27
8

Illustrating @davidcarlisle's suggestion in the comments, about the range= option:

halloween

Blue is from Noto Sans Math.

MWE

\documentclass{article}
\usepackage{xcolor}
\usepackage[nosumlimits]{amsmath}

\usepackage{halloweenmath}
\usepackage{unicode-math}
\setmathfont{Asana Math}[Colour=brown]
\setmathfont{NotoSansMath-Regular.ttf}[Colour=blue,range=it/{latin,greek}]
\setmathfont{NotoSansMath-Regular.ttf}[Colour=blue,range=up/{num}]
\setmainfont{Arial}[Scale=1.1,Colour=red]
\begin{document}
xyz
    \[x=f(y)_\alpha\beta,\gamma =\pumpkin(A)^{\mathghost}\] This is a test.
    \[\xrightflutteringbat[sin^{2}\theta]{sin\theta}\]
    \[ \overscriptrightbroom {a^{2}+b^{2}=c^{3}}\mathwitch* (\phi \minus\phi_{2}) \]
    \[ \mathcloud\greatpumpkin_{y=0}^{e^{i}} f(y_x) \]
\end{document}
1
  • Note: use \setmathfont{NotoSans-italic}[Colour=blue,range=it/{latin,greek}] for actual sans italic, since the GoogleFonts download button only has NotoSansMath-Regular attached to it, with only a few operators and arrows (and Latin and Greek, upright not italic), not the full symbol set that Noto Sans has.
    – Cicada
    Commented Nov 1, 2021 at 13:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .