3

I'm using XeLateX, Unicode math, and the Latin Modern fonts (Latin Modern and Latin Modern Math). To me, it looks like subscripts in mathematical expressions are being properly (optically) scaled -- they are not merely small-size versions of regular characters, they are wider and have fatter strokes.

Here's some code

\documentclass{article}
\usepackage{unicode-math}
\setmainfont{Latin Modern Roman}
\setmathfont{Latin Modern Math}
\begin{document}
Here is some math: $x_2=2$.
\end{document}

and the output

enter image description here

In traditional TeX, the subscript scaling would be done by using a completely different font, like cmmi7. But the Latin Modern Math font only comes in one design size (10 pt, I suppose). So how is the subscript scaling achieved?

5

In OpenType math fonts, the optically scaled glyphs for script and script script sizes are included in the same font file (usually ununcoded) and are mapped using ssty feature, which unicode-math enables as appropriate.

  • Ok. Thanks. So, if these glyphs are " not encoded", I guess that explains why they don't appear in the Windows Character Map utility? So, how do I refer to these glyphs (in code, for example)? – bubba Nov 10 '14 at 12:49
  • In XeTeX you can use \XeTeXglyph to access any glyph in the font (encoded or otherwise) by its index. – Khaled Hosny Nov 10 '14 at 18:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.