---
title: MathML Fonts for Linux
description: MathML Fonts on Linux
---

[Antenna House News ](https://www.antennahouse.com/news)

# [MathML Fonts for Linux](https://www.antennahouse.com/news/2016/03/mathml-fonts-on-linux)

 Written by [Antenna House](https://www.antennahouse.com/news/author/antenna-house) | March 1, 2016

[AH Formatter](https://www.antennahouse.com/antenna1/formatter/) supports [MathML 3.0](https://www.antennahouse.com/product/ahf63/ahf-mathml3.html) but on Linux ships with a minimal `font-config.xml` file, so if you are formatting non-trivial MathML on Linux, then you'll probably need to add some [mathematical fonts](https://www.antennahouse.com/product/ahf63/ahf-optset.html#mathml-fonts) to your `font-config.xml`.

If  counts as trivial because you could do it with "ordinary" fonts, then non-trivial would include anything requiring "stretchy" characters, such as the [identity matrix example](https://www.w3.org/TR/MathML3/chapter3.html#id.3.5.1.3) from the [MathML 3.0 spec](https://www.w3.org/TR/MathML3/) that is shown on the right rendered without and with mathematical fonts. AH Formatter on Linux uses the [STIX fonts](http://www.stixfonts.org/project.html) by [default](https://www.antennahouse.com/product/ahf63/ahf-optset.html#mml.mathvariant.fontfamily), so the simplest way to get your MathML rendering correctly is to make sure that the STIX fonts are installed and that AH Formatter will use them.

The STIX fonts are included in some Linux distributions, and they are installed by default in some more recent Linux distributions. For example: on CentOS 7, they are installed by default in `/usr/share/fonts/stix`; on an older Xubuntu system, they are available as an optional "fonts-stix" package that installs in `/usr/share/fonts/opentype/stix`; but on CentOS 5, they are not installed, and the `yum` package manager doesn't have them available as a package. If you can't install them through your package manager, you can download them from the STIX Font Project's SourceForge download page at [http://sourceforge.net/projects/stixfonts/files/Current%20Release/](http://sourceforge.net/projects/stixfonts/files/Current%20Release/) and then install at least the OpenType files.

Once you have the fonts installed, you just need to tell AH Formatter where to find them by adding a [`font-folder`](https://www.antennahouse.com/product/ahf63/ahf-font.html#font-folder) element for the directory containing the STIX fonts to your [`font-config.xml`](https://www.antennahouse.com/product/ahf63/ahf-font.html#font-configration-file) file (usually `/usr/AHFormatterV63_64/etc/font-config.xml`). For example, for CentOS 7:

```
&lt;font-folder path="/usr/share/fonts/stix" />
```

Once that's done, your mathematical characters will have gained a new dimension.

[View full post](https://www.antennahouse.com/news/2016/03/mathml-fonts-on-linux)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Antenna House"
  },
  "dateModified" : "2021-08-10T18:47:45.716Z",
  "datePublished" : "2016-03-01T20:21:42Z",
  "headline" : "MathML Fonts for Linux",
  "image" : {
    "@type" : "ImageObject",
    "height" : 60,
    "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
    "width" : 60
  },
  "mainEntityOfPage" : "https://www.antennahouse.com/news/2016/03/mathml-fonts-on-linux",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Antenna House News"
  }
}
```