STIX 2.0 字体声明

STIX 2.0 字体声明

今天 STIX v2.0 发布了。使用 unicode-math 时,正确的字体声明是什么,以便使用各种光学尺寸等?

答案1

您无需执行任何操作即可获取数学字体中包含的光学尺寸。它们与启用脚本和脚本字体大小ssty的功能相关联。unicode-math

答案2

[为了您的方便:您可以从下载 STIX v2.0.0GitHub]

您无需更改任何内容,因为此版本不包含光学尺寸。ssty提供特殊下标和上标字形的新功能由 自动选择unicode-math。 请参阅发行说明:

WHAT IS NEW IN THIS RELEASE?

In addition to the overall visual redesign, STIX Two incorporates a
number of significant improvements and additions.  Special attention
has been given to implementing accepted best practices for OpenType
fonts, such as the use of font features to access variant glyph shapes
that were previously only available via the Unicode Private Use Areas.

The letterspacing and kerning of the text fonts have been
significantly improved.

True small capital variants (Latin, Cyrillic, and Greek), accessible
via the OpenType font feature smcp, have been added for all text
fonts.

Text (lowercase or oldstyle) numerals, available via the font features
pnum and onum, have been added, in addition to natural-spacing
figures.

Alphabetic superscripts and numeric sub- and superscripts, accessible
via the subs and sups font features, have been added.

Fractions are available via the frac feature, as well as numerators
(numr) and denominators (dnom).

The OpenType MATH table has been completely rewritten and extended.

Additions have been made to these Unicode blocks:
    Latin-1 Supplement          U+0080 - U+00FF
    Latin Extended-A            U+0100 - U+017F
    Latin Extended Additional   U+0180 - U+024F
    Cyrillic                    U+0400 - U+04FF
    Greek and Coptic            U+0370 - U+03FF
    IPA blocks                  U+0250 - U+02AF

Full details of included glyphs and supported font features are
available in the included spreadsheet.

附录:正如 Khaled 指出的,也是我误解的,STIX2 中有一些光学尺寸,而 STIX1 中没有,即数学模式下的下标和上标。我误解了这一点,因为对我来说,光学尺寸意味着Adobe 光学尺寸定义。除了 Khaled 的回答之外,这里还有一个片段,显示了数学模式下下标和上标的差异,同时显示在文本模式下没有差异。

\documentclass{article}
\usepackage{unicode-math}
\setmainfont{STIX2Text-Regular.otf}
\setmathfont{STIX2Math.otf}
\begin{document}

\setbox0=\hbox{$abc$}
\resizebox{!}{\ht0}{\copy0}

\resizebox{!}{\ht0}{$\scriptstyle abc$}

\resizebox{!}{\ht0}{$\scriptscriptstyle abc$}

\setbox0=\hbox{abc}
\resizebox{!}{\ht0}{\copy0}

\resizebox{!}{\ht0}{\scriptsize abc}

\resizebox{!}{\ht0}{\tiny abc}

\end{document}

在此处输入图片描述

相关内容