diff options
author | Karl Berry <karl@freefriends.org> | 2021-01-12 21:19:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-01-12 21:19:38 +0000 |
commit | 3dde4820debda1c2add0b0812da051b89b422aac (patch) | |
tree | 621ae7fc0238cf0c9e4ac3a699ab007ee2f22348 /Master/texmf-dist/tex/latex | |
parent | 33b5d814d217ba9e6f93534ee0d50dd8d1975e57 (diff) |
libertinus-otf (12jan21)
git-svn-id: svn://tug.org/texlive/trunk@57398 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty b/Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty index 03eaf948e17..5ec65e8c716 100644 --- a/Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty +++ b/Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty @@ -8,7 +8,7 @@ % Copyright 2020 Herbert Voss hvoss@tug.org % \ProvidesPackage{libertinus-otf}[% - 2020/10/13 v. 0.27 (Herbert Voss) Supports libertinus fonts for lualatex and xelatex.] + 2021/01/11 v. 0.28 (Herbert Voss) Supports libertinus fonts for lualatex and xelatex.] \RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} %\RequirePackage[no-math]{fontspec} @@ -27,6 +27,8 @@ \DeclareOptionX{osf}[true]{\@nameuse{if#1}\libertinus@liningfalse\else\libertinus@liningtrue\fi} \DeclareOptionX{usefilenames}[true]{\@nameuse{libertinus@usefilenames#1}} +\newcommand*\libertinusMM@feature{} +\DeclareOptionX{math}[]{\renewcommand*\libertinusMM@feature{#1}} \DeclareOptionX{nomath}[true]{\@nameuse{libertinus@nomath#1}} \DeclareOptionX{mono}[true]{\@nameuse{libertinus@mono#1}} @@ -43,10 +45,12 @@ \newcommand*\libertinusDisplayT@scale{1} \newcommand*\libertinusSF@scale{1} \newcommand*\libertinusTT@scale{MatchLowercase} +\newcommand*\libertinusTT@stretch{0.9} \newcommand*\libertinusInitialsT@scale{1} \DeclareOptionX{ScaleRM}{\renewcommand*{\libertinusRM@scale}{#1}} \DeclareOptionX{ScaleSF}{\renewcommand*{\libertinusSF@scale}{#1}} \DeclareOptionX{ScaleTT}{\renewcommand*{\libertinusTT@scale}{#1}} +\DeclareOptionX{StretchTT}{\renewcommand*{\libertinusTT@stretch}{#1}} \def\libertinus@defaultfeatures{} \DeclareOptionX{defaultfeatures}{\def\libertinus@defaultfeatures{#1}} @@ -231,8 +235,8 @@ \iflibertinus@mono \setmonofont{LibertinusMono}[ RawFeature = {\libertinus@figurealign; \libertinus@figurestyle}, - Scale = \libertinusTT@scale, - FakeStretch = 0.8, + Scale = \libertinusTT@scale, + FakeStretch = \libertinusTT@stretch, UprightFont = *-Regular, ItalicFont = *-Regular, ItalicFeatures = {FakeSlant=0.2}, @@ -400,8 +404,8 @@ \iflibertinus@mono \setmonofont{Libertinus Mono}[ % RawFeature = {\libertinus@figurealign, \libertinus@figurestyle}, - Scale = \libertinusTT@scale, - FakeStretch = 0.8, + Scale = \libertinusTT@scale, + FakeStretch = \libertinusTT@stretch, UprightFont = * Regular, ItalicFont = * Regular, ItalicFeatures = {FakeSlant=0.2}, @@ -421,8 +425,8 @@ \typeout{*************************************^^J% * Using libertinus math *^^J% *************************************}% - \setmathfont{LibertinusMath-Regular.otf}%[BoldFont=LibertinusMath-Bold.otf] - \setmathfont[version=bold,RawFeature={embolden=3}]{LibertinusMath-Regular.otf} + \setmathfont{LibertinusMath-Regular.otf}[RawFeature=\libertinusMM@feature] + \setmathfont[version=bold,RawFeature={embolden=3,\libertinusMM@feature}]{LibertinusMath-Regular.otf} \fi \ifluatex |