Load STIX Two using fontspec.

Loading the stix2 package forces T1 encoding and breaks some ligatures.
Instead, we load STIX Two using fontspec, which retains TU encoding.
This commit is contained in:
2024-05-27 10:08:28 +00:00
parent 5c40dd6097
commit 7650b51fc7

View File

@@ -76,8 +76,17 @@
% Standardized STIX2 fonts that print well, display on
% e-readers/screens clearly, and have compatible licensing
% requirements
\RequirePackage{stix2}
%\RequirePackage{stix2}
% allows UTF encoding, needed for Icelandic and other accented characters
\RequirePackage{fontspec}
\RequirePackage{unicode-math}
\setmathfont{STIX Two Math}
\setmainfont{STIX Two Text}[
Extension={.otf},
UprightFont={*-Regular},
BoldFont={*-Bold},
ItalicFont={*-Italic},
BoldItalicFont={*-BoldItalic}]
\usepackage[useregional]{datetime2}
%% Smart manipulation of dates