# Is there any sans-serif font that fully supports unicode-math?

As stated in the question title, is there any sans-serif font that fully supports the unicode-math package? Alternatively, is there a list that shows the different levels of support for (preferably many) different fonts (e.g. Latin Modern Sans has numbers, Latin letters and uppercase Greek letters, but no lowercase Greek letters and no/not all symbols)?

The fonts that are commonly advertised to fully work with unicode-math are Latin Modern Math, Asana Math and XITS Math. However, these are all serif fonts.

At the time of writing, there is no Unicode math font available which is sanserif across all of the range. There have been discussions about this (presentations and the like would benefit from availability, particularly for those people not in pure mathematics but using mathematical notation).

I'm now doing one: https://github.com/firamath/firamath, which is based on FiraSans.

Here is a showcase (use beamer theme metropolis):

Of course, this work is far away from finished. For example, most of the relation symbols haven't been drawn. By the way, I'm a newbie to font design and creation, so if you have any suggestions, please tell me.

Update:

Now it's available in CTAN as firamath.

• Great work — hope it goes well! – Will Robertson Jan 20 '18 at 12:05
• @stone-zeng Nice design and style! – Cicada Sep 29 '19 at 7:26

The Mathematical Alphanumeric Symbols unicode block defines 996 symbols: bold, italic, fraktur, serif, sans-serif, double-struck, latin/greek, script, etc, in various combinations. 𝐀𝐚 𝐴𝑎 𝑨𝒂 𝒜𝒶 𝓐𝓪 𝔄𝔞 𝔸𝕒 𝕬𝖆 𝖠𝖺 𝗔𝗮 𝘈𝘢 𝘼𝙖 𝙰𝚊 𝚪𝛄 𝛤𝛾 𝜞𝜸 𝝘𝝲 𝞒𝞬 𝟏𝟐𝟑 𝟙𝟚𝟛 𝟣𝟤𝟥 𝟭𝟮𝟯 𝟷𝟸𝟹.

The MAS block definitions are built-in, separate to the font, and the MAS is also separate from the Latin and Greek blocks used for normal text. So that implies that any (math) font implementing the MAS, whether serif or sans, would have all those combinations, 𝕽 like bold capital fraktur etc.

Code

\documentclass[12pt]{article}
\usepackage{xcolor}
\usepackage{unicode-math}
\setmathfont{DejaVu Math}
\setmainfont{Noto Serif}

\newcommand\mlatin{𝐀𝐚 𝐴𝑎 𝑨𝒂 𝒜𝒶 𝓐𝓪 𝔄𝔞 \\ 𝔸𝕒 𝕬𝖆 𝖠𝖺 𝗔𝗮 𝘈𝘢 𝘼𝙖 𝙰𝚊}
\newcommand\mgreek{𝚪𝛄 𝛤𝛾 𝜞𝜸 𝝘𝝲 𝞒𝞬}
\newcommand\mdigits{𝟏𝟐𝟑 𝟙𝟚𝟛 𝟣𝟤𝟥 𝟭𝟮𝟯 𝟷𝟸𝟹}

\begin{document}

{\normalsize Text mode (Noto Serif)}:
Plain characters here, abc ABC ΓΣΤ αβγ, then glyphs from unicode block Mathematical Alphamumeric Symbols:

\noindent\mlatin

\noindent\mgreek

\noindent\mdigits

{\normalsize Maths mode (DejaVu Math)}:
MAS glyphs:

\noindent$\mlatin \\ \mgreek \\ \mdigits$
\end{document}


So to do everything in sans, it should be a case of selecting a sans for the text mode, and in unicode-math mapping all the math styles to sans (range XX -> sf), I would expect. I'll do an experiment.

• Is this LaTeX, XeLaTeX, ...? – merrybot Jul 27 '20 at 16:08
• @merrybot xelatex and lualatex, because those engines can handle unicode system fonts natively. unicode-math package calls fontspec in the background. Things can be done with legacy fonts under pdflatex, but the 127/256 character-limit of the font files involves doing a lot of extra work with encodings, multiple files, split files, conversions, mapping, virtual fonts, etc. Unicode is easier (for me), plus the multiple math alphabets (20+) are predefined in Unicode, and one font file can contain all of them, plus the normal text, and more (XITS Math, Asana Math, etc). – Cicada Jul 28 '20 at 4:49
• @merrybot An example of mapping math alphabets might be of interest: tex.stackexchange.com/questions/340097/… – Cicada Jul 28 '20 at 4:54