18

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.

8

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).

23

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

Here is a showcase (use beamer theme metropolis):

showcase

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.

  • 5
    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
1

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.

The MAS

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

Your Answer

By clicking โ€œPost Your Answerโ€, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.