Sans-serif font with Unicode math support
Branch: master
Clone or download
stone-zeng glyph: add arrows
Arrows that haven't been created are left empty temporarily.
Latest commit 3e23983 Feb 6, 2019

README.md

Fira Math

Build Status CTAN GitHub release

Fira Math is a sans-serif font with Unicode math support. This font is a fork of

Showcase

Showcase

Installation

On your system

Download firamath-otf.zip from GitHub release. Unzip and open the folder, then follow the instructions:

  • Windows
    1. Quit related programs, e.g. Microsoft Word.
    2. Double-click the font file to open it in the Font Previewer.
    3. Click Install bottom to install.
    4. You can also directly copy all the .otf font files into %WINDOWS%\Fonts\ to install them.
  • macOS
    1. Double-click on the font files in Finder.
    2. It will open in the font previewer. Click Install Font. It will open in the Font Book.
    3. Close the Font Book. The fonts should now be available.
    4. Details can be found in this article.
  • Linux
    1. Copy the .otf font files to your fonts directory.
    2. Run sudo fc-cache.

On the TeX distribution

  • If there are no special reasons, you should always install Fira Math via the package manager:

    • TeX Live: run tlmgr install firamath
    • MiKTeX: run mpm --admin --install=firamath

    Both distributions have GUI interfaces, you may enjoy them as well.

  • [NOT RECOMMENDED] Download firamath.tds.zip from CTAN or GitHub release page, extract it in the root of one of your TDS trees, then run mktexlsr and fc-cache to update the filename database and font cache.

Usage

Fira Math can be used in LaTeX, ConTeXt and Microsoft Word after installed on your OS (or the TeX distribution).

LaTeX

% Compiled with XeLaTeX or LuaLaTeX
\documentclass{article}
\usepackage{amsmath}
\usepackage[mathrm=sym]{unicode-math}
\setmathfont{Fira Math}

\begin{document}
\[
  \int_0^{\mathrm{\pi}} \sin x \, \mathrm{d}x = 2
\]
\end{document}

You may try the firamath-otf package as well. - Thanks Herbert Voß!

ConTeXt

% Compiled with ConTeXt MkIV
\definefontfamily [mainface] [rm] [FiraGO]  % Require FiraGO fonts
\definefontfamily [mainface] [mm] [Fira Math]
\setupbodyfont    [mainface]

\starttext
\startformula
  \int_0^{\mathrm{\pi}} \sin x \, \mathrm{d}x = 2
\stopformula
\stoptext

See https://tex.stackexchange.com/q/429621.

Microsoft Word

  1. Create a new equation. Then select the little additional settings corner.

  2. In the menu, change the Default font to Fira Math.

  3. In order for the changes to take effect, you will have to create a new equation environment (the current one will not be changed).

  4. To change the font in existing equations, select the equation text and select an OpenType math-enabled font (such as Fira Math).

See https://superuser.com/q/1114697.

Building from source

The source files FiraMath-*.sfd are not designed for generating fonts directly. You need run the Python scripts to build Fira Math.

Windows

  1. Install FontForge.

  2. Run ffpython.exe .\scripts\build.py --fonts.

Linux

  1. Install Python 2.7 and python-fontforge, or the full FontForge.

  2. Run python ./scripts/build.py --fonts.

Contributing

Issues and pull requests are always welcome.

License

This Font Software is licensed under the SIL Open Font License, Version 1.1.


Copyright (C) 2018, 2019 by Xiangdong Zeng.