Page tree

Version history:

  • 1.0, 22 March 2022

Logical and mathematical symbols: the STIX2Math solution

Brill publications increasingly contain all sorts of logical/mathematical symbols. Although all versions of the Brill typeface have always supported a selected set of mathematical symbols, this is not enough for some kinds of texts, notably philosophical texts dealing with logic. Therefore it became necessary to specify another font next to the Brill fonts. We have chosen STIX2Math because it has been carefully developed over a number of years (much like the Brill fonts) and because it is aimed explicitly at supporting all manner of scientific and technological textual symbols.

General information about the STIX fonts project is at the STIX fonts website.

Note that Brill only advocates the use of the STIX2Math font for mathematical/logical symbols not present in the Brill fonts, not any of the other STIX2Text fonts (which are also part of the download package).

XML production, HTML, and CSS

XML logical/mathematical symbol tagging

The XML attribute is @lang: 'und-Zmth'. ‘und’ is the ISO 639 code meaning ‘undetermined’.

Tagging of mathematical/logical symbols not available in the Brill fonts v. 4.0x must be added to XML data. By adding a script attribute to such characters, a STIX2Math web font can then be selected for display purposes later on.

CSS and HTML syntax

In CSS, the following code is essential for a web browser to be able to call a STIX2Math web font:

…

@font-face {
                font-family: 'STIX2Math';
                src: url('STIX2Math.woff2') format('woff2'),
                     url('STIX2Math.woff') format('woff');
                font-style: normal;
                font-weight: normal;
                text-rendering: optimizeLegibility;
}

…

:lang(und-Zmth) {
                font-family: STIX2Math;
                font-size: 88%;
}

…

In HTML, the code to use is

<span lang='und-Zmth'>…</span>

in which … stands for any logical/mathematical symbol which is unavailable in the Brill fonts v. 4.0x.

Windows and macOS

All STIX fonts can be used on both MS Windows and macOS.