diff options
author | Karl Berry <karl@freefriends.org> | 2018-08-23 21:55:00 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-08-23 21:55:00 +0000 |
commit | 6e8db496b41788d40abe4c5d994cfe375e6e346c (patch) | |
tree | 017f11435ceddf0cc841b5f684a04ff1939cc48d /Master/texmf-dist/tex/latex/libertinus-otf | |
parent | de43892c3a53e4eb0c07719cb531933d179a7404 (diff) |
libertinus-otf (23aug18)
git-svn-id: svn://tug.org/texlive/trunk@48464 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/libertinus-otf')
-rw-r--r-- | Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty | 60 |
1 files changed, 53 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 913f14fb5c8..e97b5b43817 100644 --- a/Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty +++ b/Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty @@ -1,4 +1,4 @@ -%% $Id: libertinus-otf.sty 777 2018-07-07 09:08:07Z herbert $ +%% $Id: libertinus-otf.sty 791 2018-07-31 12:39:30Z herbert $ %% %% This file is distributed under the terms of the LaTeX Project Public %% License from CTAN archives in directory macros/latex/base/lppl.txt. @@ -8,14 +8,16 @@ % Copyright 2018 Herbert Voss hvoss@tug.org % \ProvidesPackage{libertinus-otf}[% - 2018/07/07 v. 0.09 (Herbert Voss) Supports libertinus fonts for all luatex/xetex .] + 2018/08/22 v. 0.11 (Herbert Voss) Supports libertinus fonts for all luatex/xetex .] \RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} \RequirePackage{unicode-math} +\newif\iflibertinus@nomath \libertinus@nomathfalse \newif\iflibertinus@lining \libertinus@liningtrue \newif\iflibertinus@tabular \libertinus@tabulartrue \newif\iflibertinus@semibold \libertinus@semiboldfalse +\newif\iflibertinus@usefilenames \libertinus@usefilenamesfalse \DeclareOptionX{lining}[true]{\@nameuse{libertinus@lining#1}} \DeclareOptionX{nf}[true]{\@nameuse{libertinus@lining#1}} @@ -23,6 +25,9 @@ \DeclareOptionX{oldstyle}[true]{\@nameuse{if#1}\libertinus@liningfalse\else\libertinus@liningtrue\fi} \DeclareOptionX{osf}[true]{\@nameuse{if#1}\libertinus@liningfalse\else\libertinus@liningtrue\fi} +\DeclareOptionX{usefilenames}[true]{\@nameuse{libertinus@usefilenames#1}} +\DeclareOptionX{nomath}[true]{\@nameuse{libertinus@nomath#1}} + \DeclareOptionX{tabular}[true]{\@nameuse{libertinus@tabular#1}} \DeclareOptionX{t}[true]{\@nameuse{libertinus@tabular#1}} \DeclareOptionX{proportional}[true]{\@nameuse{if#1}\libertinus@tabularfalse\else\libertinus@tabulartrue\fi} @@ -71,6 +76,9 @@ SmallCapsFeatures={Letters=SmallCaps\ifluatex,Renderer=Basic\fi} , \libertinus@defaultfeatures } + +\iflibertinus@usefilenames + \setmainfont{libertinusserif}[ Numbers = {\libertinus@figurealign,\libertinus@figurestyle}, Scale = \libertinusRM@scale , @@ -96,16 +104,54 @@ Scale = \libertinusTT@scale, FakeStretch = 0.8, UprightFont = *-regular, - ItalicFont = *-oblique, + ItalicFont = *-italic, BoldFont = *-bold, - BoldItalicFont = *-boldoblique, + BoldItalicFont = *-bolditalic, % AutoFakeBold = 1.5, Extension = .otf, ] -%\setmathfont{libertinusmath-regular.otf}[BoldFont=libertinusmath-bold.otf] -\setmathfont{libertinusmath-regular.otf} -\setmathfont[version=bold]{libertinusmath-bold.otf} +\else + +\setmainfont{Libertinus Serif}[ + Numbers = {\libertinus@figurealign,\libertinus@figurestyle}, + Scale = \libertinusRM@scale , +% UprightFont = * Regular, +% ItalicFont = * Ialic, +% BoldFont = * Bold, % \libertinus@boldstyle, +% BoldItalicFont = * Bold Italic, %-\libertinus@boldstyle italic, + SmallCapsFeatures={Letters=SmallCaps}, +% Extension = .otf +] +\setsansfont{Libertinus Sans}[ + Numbers = {\libertinus@figurealign, \libertinus@figurestyle} , + Scale = \libertinusSF@scale , +% UprightFont = * Regular, +% ItalicFont = * Italic, +% BoldFont = * Bold, +% BoldItalicFont = * Bold Italic, + SmallCapsFeatures={Letters=SmallCaps}, +% Extension = .otf +] +\setmonofont{Libertinus Mono}[ +% Numbers = {\libertinus@figurealign, \libertinus@figurestyle}, + Scale = \libertinusTT@scale, + FakeStretch = 0.8, +% UprightFont = * Regular, +% ItalicFont = * Italic, +% BoldFont = * Bold, +% BoldItalicFont = * Bold Italic, +% AutoFakeBold = 1.5, +% Extension = .otf, +] + +\fi + +\iflibertinus@nomath\else + %\setmathfont{libertinusmath-regular.otf}[BoldFont=libertinusmath-bold.otf] + \setmathfont{libertinusmath-regular.otf} + \setmathfont[version=bold]{libertinusmath-bold.otf} +\fi \newfontfamily\LibertinusKeyboard{libertinuskeyboard-regular.otf} \newfontfamily\LibertinusDisplay{libertinusserifdisplay-regular.otf} |