Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

XML production, HTML, and CSS

The specifications for tagging logical and mathematical symbols are found on the page of the same name.

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.