diff options
Diffstat (limited to 'fonts/pagella-otf/latex/pagella-otf.sty')
-rw-r--r-- | fonts/pagella-otf/latex/pagella-otf.sty | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/fonts/pagella-otf/latex/pagella-otf.sty b/fonts/pagella-otf/latex/pagella-otf.sty index c68e9b6111..213921cbaa 100644 --- a/fonts/pagella-otf/latex/pagella-otf.sty +++ b/fonts/pagella-otf/latex/pagella-otf.sty @@ -1,4 +1,4 @@ -%% $Id: pagella-otf.sty 620 2022-10-12 15:11:41Z herbert $ +%% $Id: pagella-otf.sty 633 2022-10-15 07:58:35Z herbert $ %% %% This file is distributed under the terms of the LaTeX Project Public %% License from CTAN archives in directory macros/latex/base/lppl.txt. @@ -6,7 +6,7 @@ %% % \ProvidesPackage{pagella-otf}[% - 2022/10/11 v. 0.01 (Herbert Voss) Supports pagella fonts for lualatex and xelatex.] + 2022/10/15 v. 0.02 (Herbert Voss) Supports pagella fonts for lualatex and xelatex.] \RequirePackage{iftex,xkeyval,textcomp} @@ -14,12 +14,14 @@ \newif\ifpagella@tabular \pagella@tabulartrue \newif\ifpagella@usefilenames \pagella@usefilenamestrue \newif\ifpagella@nomath \pagella@nomathfalse +\newif\ifpagella@libertinus \pagella@libertinusfalse \DeclareOptionX{lining}[true]{\@nameuse{pagella@lining#1}} \DeclareOptionX{nf}[true]{\@nameuse{pagella@lining#1}} \DeclareOptionX{lf}[true]{\@nameuse{pagella@lining#1}} \DeclareOptionX{oldstyle}[true]{\@nameuse{if#1}\pagella@liningfalse\else\pagella@liningtrue\fi} \DeclareOptionX{osf}[true]{\@nameuse{if#1}\pagella@liningfalse\else\pagella@liningtrue\fi} +\DeclareOptionX{libertinus}[true]{\@nameuse{pagella@libertinus#1}} \newcommand*\pagellaMM@feature{} \DeclareOptionX{math}[]{\renewcommand*\pagellaMM@feature{#1}} @@ -77,7 +79,7 @@ SlantedFont = *-regular, SlantedFeatures= {FakeSlant=0.2}, BoldFont = *-bold, - BoldFeatures = { SmallCapsFont = *-Bold }, + BoldFeatures = { SmallCapsFont = *-bold }, BoldItalicFont = *-bolditalic, BoldItalicFeatures = { SmallCapsFont = *-bolditalic }, BoldSlantedFont= *-bold, @@ -97,7 +99,7 @@ SlantedFont = *-regular, SlantedFeatures= {FakeSlant=0.2}, BoldFont = *-bold, - BoldFeatures = { SmallCapsFont = *-Bold }, + BoldFeatures = { SmallCapsFont = *-bold }, BoldItalicFont = *-bolditalic, BoldItalicFeatures = { SmallCapsFont = *-bolditalic }, BoldSlantedFont= *-bold, @@ -117,7 +119,7 @@ SlantedFont = *-regular, SlantedFeatures= {FakeSlant=0.2}, BoldFont = *-bold, - BoldFeatures = { SmallCapsFont = *-Bold }, + BoldFeatures = { SmallCapsFont = *-bold }, BoldItalicFont = *-bolditalic, BoldItalicFeatures = { SmallCapsFont = *-bolditalic }, BoldSlantedFont= *-bold, @@ -211,7 +213,11 @@ \typeout{*************************************^^J% * Using pagella math *^^J% *************************************}% -\setmathfont{texgyrepagella-math.otf}[AutoFakeBold,RawFeature=\pagellaMM@feature] + \setmathfont{texgyrepagella-math.otf}[AutoFakeBold,RawFeature=\pagellaMM@feature] + \ifpagella@libertinus + \setmathfont{LibertinusMath-Regular.otf}[AutoFakeBold,RawFeature=\pagellaMM@feature, + range={\int,\iint,\iiint,\iiiint,\oint,\oiint,\oiiint}] + \fi \fi \def\sufigures{\addfontfeatures{VerticalPosition=Superior}} |