Expresso.Element.Math.Font (expresso v0.1.0)

Copy Markdown View Source

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.

Summary

Functions

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

The math font of a deck without the math_font option

The names of the math fonts, with the default first

Functions

css(name)

@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()

@spec default() :: atom()

The math font of a deck without the math_font option

names()

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

The names of the math fonts, with the default first