# `Expresso.Element.Math.Font`
[🔗](https://github.com/rellen/expresso/blob/main/lib/expresso/element/math/font.ex#L1)

The math font of a deck, and the style sheet of Temml for it

The deck option `math_font` takes one of `names/0`. `Expresso.Renderer` writes
`css/1` into a `style` element of a document with a `math` element, so a
deck with no formula holds no math font.

Temml gives one style sheet for each font, in `priv/temml/css/`, with rules
for its classes and the sizes of its stretched accents. `priv/fonts/math/`
holds the font files, their licenses and the file `SOURCE`. `css/1` replaces
each `url()` of a font file with a data URI of the file, because the
document is one file. The font `:system` holds no math font, and the
browser takes a math font of the computer.

The text of `\text{…}` in a formula, an `mtext`, takes the font of the
slide, from the custom property `--font-text` of the theme.

# `css`

```elixir
@spec css(atom()) :: String.t()
```

The style sheet of a math font, with a data URI of each of its files

The function raises for a style sheet that names a file that the deck does
not have.

# `default`

```elixir
@spec default() :: atom()
```

The math font of a deck without the `math_font` option

# `names`

```elixir
@spec names() :: [atom()]
```

The names of the math fonts, with the default first

---

*Consult [api-reference.md](api-reference.md) for complete listing*
