diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/termes-otf/termes-otf.sty | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/termes-otf/termes-otf.sty b/Master/texmf-dist/tex/latex/termes-otf/termes-otf.sty index 332ce4df06d..581679b7353 100644 --- a/Master/texmf-dist/tex/latex/termes-otf/termes-otf.sty +++ b/Master/texmf-dist/tex/latex/termes-otf/termes-otf.sty @@ -1,4 +1,4 @@ -%% $Id: termes-otf.sty 632 2022-10-14 12:16:09Z herbert $ +%% $Id: termes-otf.sty 637 2022-10-17 06:33:15Z 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{termes-otf}[% - 2022/10/11 v. 0.01 (Herbert Voss) Supports termes fonts for lualatex and xelatex.] + 2022/10/17 v. 0.02 (Herbert Voss) Supports termes fonts for lualatex and xelatex.] \RequirePackage{iftex,xkeyval,textcomp} @@ -14,12 +14,15 @@ \newif\iftermes@tabular \termes@tabulartrue \newif\iftermes@usefilenames \termes@usefilenamestrue \newif\iftermes@nomath \termes@nomathfalse +\newif\iftermes@libertinus \termes@libertinusfalse + \DeclareOptionX{lining}[true]{\@nameuse{termes@lining#1}} \DeclareOptionX{nf}[true]{\@nameuse{termes@lining#1}} \DeclareOptionX{lf}[true]{\@nameuse{termes@lining#1}} \DeclareOptionX{oldstyle}[true]{\@nameuse{if#1}\termes@liningfalse\else\termes@liningtrue\fi} \DeclareOptionX{osf}[true]{\@nameuse{if#1}\termes@liningfalse\else\termes@liningtrue\fi} +\DeclareOptionX{libertinus}[true]{\@nameuse{termes@libertinus#1}} \newcommand*\termesMM@feature{} \DeclareOptionX{math}[]{\renewcommand*\termesMM@feature{#1}} @@ -150,7 +153,7 @@ %------------------------ filenames stop ------------------------- \else %------------------------ symbolic names start ------------------------- -\setmainfont{TeX Gyre Pagella}[ +\setmainfont{TeX Gyre Termes}[ RawFeature = {\termes@figurealign,\termes@figurestyle}, Scale = \termesRM@scale , UprightFont = * Regular, @@ -168,7 +171,7 @@ BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = * Bold }, SmallCapsFeatures = {Letters=SmallCaps}, ] -\newfontfamily\termes{TeX Gyre Pagella}[ +\newfontfamily\termes{TeX Gyre Termes}[ RawFeature = {\termes@figurealign,\termes@figurestyle}, Scale = \termesRM@scale , UprightFont = * Regular, @@ -186,7 +189,7 @@ BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = * Bold }, SmallCapsFeatures = {Letters=SmallCaps}, ] -\newfontfamily\termesOsF{TeX Gyre Pagella}[ +\newfontfamily\termesOsF{TeX Gyre Termes}[ RawFeature = {OldStyle,Proportional}, Scale = \termesRM@scale , UprightFont = * Regular, @@ -205,7 +208,7 @@ SmallCapsFeatures = {Letters=SmallCaps}, ] -\newfontfamily\termesTLF{TeX Gyre Pagella}[ +\newfontfamily\termesTLF{TeX Gyre Termes}[ RawFeature = {Lining,Monospaced}, Scale = \termesRM@scale , UprightFont = * Regular, @@ -231,7 +234,11 @@ \typeout{*************************************^^J% * Using termes math *^^J% *************************************}% -\setmathfont{texgyretermes-math.otf}[AutoFakeBold,RawFeature=\termesMM@feature] + \setmathfont{texgyretermes-math.otf}[AutoFakeBold,RawFeature=\termesMM@feature] + \iftermes@libertinus + \setmathfont{LibertinusMath-Regular.otf}[AutoFakeBold,RawFeature=\termesMM@feature, + range={\int,\iint,\iiint,\iiiint,\oint,\oiint,\oiiint}] + \fi \fi \def\sufigures{\addfontfeatures{VerticalPosition=Superior}} |