diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty | 143 |
1 files changed, 137 insertions, 6 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 4ef403a82e0..5e01f794b35 100644 --- a/Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty +++ b/Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty @@ -1,14 +1,14 @@ -%% $Id: libertinus-otf.sty 802 2018-09-03 10:38:34Z herbert $ +%% $Id: libertinus-otf.sty 803 2018-09-03 19:43:59Z herbert $ %% %% This file is distributed under the terms of the LaTeX Project Public %% License from CTAN archives in directory macros/latex/base/lppl.txt. %% Either version 1.3 or, at your option, any later version. %% % -% Copyright 2018 Herbert Voss hvoss@tug.org +% Copyright 2018 Herbert Voss hvoss@tug.org and Bob Tennent rdt@cs.queensu.ca % \ProvidesPackage{libertinus-otf}[% - 2018/09/03 v. 0.11a (Herbert Voss) Supports libertinus fonts for all luatex/xetex] + 2018/09/03 v. 0.12 (Herbert Voss and Bob Tennent) Supports libertinus fonts for lualatex and xelatex.] \RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} \RequirePackage{unicode-math} @@ -17,7 +17,7 @@ \newif\iflibertinus@lining \libertinus@liningtrue \newif\iflibertinus@tabular \libertinus@tabulartrue \newif\iflibertinus@semibold \libertinus@semiboldfalse -\newif\iflibertinus@usefilenames \libertinus@usefilenamesfalse +\newif\iflibertinus@usefilenames \libertinus@usefilenamestrue \DeclareOptionX{lining}[true]{\@nameuse{libertinus@lining#1}} \DeclareOptionX{nf}[true]{\@nameuse{libertinus@lining#1}} @@ -89,8 +89,42 @@ SmallCapsFeatures={Letters=SmallCaps}, Extension = .otf ] + +\newfontfamily\LibertinusSerifSB{libertinusserif}[ + Numbers = {\libertinus@figurealign,\libertinus@figurestyle}, + Scale = \libertinusRM@scale, + UprightFont = *-regular, + ItalicFont = *-italic, + BoldFont = *-semibold, + BoldItalicFont = *-semibolditalic, + SmallCapsFeatures={Letters=SmallCaps}, + Extension = .otf +] + +\newfontfamily\LibertinusSerifOsF{libertinusserif}[ + Numbers = {OldStyle,Proportional}, + Scale = \libertinusRM@scale , + UprightFont = *-regular, + ItalicFont = *-italic, + BoldFont = *-\libertinus@boldstyle, + BoldItalicFont = *-\libertinus@boldstyle italic, + SmallCapsFeatures={Letters=SmallCaps}, + Extension = .otf +] + +\newfontfamily\LibertinusSerifTLF{libertinusserif}[ + Numbers = {Lining,Monospaced}, + Scale = \libertinusRM@scale , + UprightFont = *-regular, + ItalicFont = *-italic, + BoldFont = *-\libertinus@boldstyle, + BoldItalicFont = *-\libertinus@boldstyle italic, + SmallCapsFeatures={Letters=SmallCaps}, + Extension = .otf +] + \setsansfont{libertinussans}[ - Numbers = {\libertinus@figurealign, \libertinus@figurestyle} , + Numbers = {\libertinus@figurealign,\libertinus@figurestyle} , Scale = \libertinusSF@scale , UprightFont = *-regular, ItalicFont = *-italic, @@ -99,6 +133,29 @@ SmallCapsFeatures={Letters=SmallCaps}, Extension = .otf ] + +\newfontfamily\LibertinusSansOsF{libertinussans}[ + Numbers = {OldStyle,Proportional} , + Scale = \libertinusSF@scale , + UprightFont = *-regular, + ItalicFont = *-italic, + BoldFont = *-bold, + BoldItalicFont = *-bolditalic, + SmallCapsFeatures={Letters=SmallCaps}, + Extension = .otf +] + +\newfontfamily\LibertinusSansTLF{libertinussans}[ + Numbers = {Lining, Monospaced} , + Scale = \libertinusSF@scale , + UprightFont = *-regular, + ItalicFont = *-italic, + BoldFont = *-bold, + BoldItalicFont = *-bolditalic, + SmallCapsFeatures={Letters=SmallCaps}, + Extension = .otf +] + \setmonofont{libertinusmono}[ % Numbers = {\libertinus@figurealign, \libertinus@figurestyle}, Scale = \libertinusTT@scale, @@ -107,7 +164,6 @@ ItalicFont = *-italic, BoldFont = *-bold, BoldItalicFont = *-bolditalic, -% AutoFakeBold = 1.5, Extension = .otf, ] @@ -123,6 +179,51 @@ SmallCapsFeatures={Letters=SmallCaps}, % Extension = .otf ] + +\newfontfamily\LibertinusSerif{Libertinus Serif}[ + Numbers = {\libertinus@figurealign,\libertinus@figurestyle}, + Scale = \libertinusRM@scale , +% UprightFont = *-regular, +% ItalicFont = *-italic, +% BoldFont = *-\libertinus@boldstyle, +% BoldItalicFont = *-\libertinus@boldstyle italic, + SmallCapsFeatures={Letters=SmallCaps}, +% Extension = .otf +] + +\newfontfamily\LibertnusSerifSB{Libertinus Serif}[ + Numbers = {\libertinus@figurealign,\libertinus@figurestyle}, + Scale = \libertinusRM@scale , +% UprightFont = *-regular, +% ItalicFont = *-italic, + BoldFont = * Semibold, + BoldItalicFont = * Semibold Italic, + SmallCapsFeatures={Letters=SmallCaps}, +% Extension = .otf +] + +\newfontfamily\LibertinusSerifOsF{Libertinus Serif}[ + Numbers = {OldStyle,Proportional}, + Scale = \libertinusRM@scale , +% UprightFont = *-regular, +% ItalicFont = *-italic, +% BoldFont = *-\libertinus@boldstyle, +% BoldItalicFont = *-\libertinus@boldstyle italic, + SmallCapsFeatures={Letters=SmallCaps}, +% Extension = .otf +] + +\newfontfamily\LibertinusSerifTLF{Libertinus Serif}[ + Numbers = {Lining,Monospaced}, + Scale = \libertinusRM@scale , +% UprightFont = *-regular, +% ItalicFont = *-italic, +% BoldFont = *-\libertinus@boldstyle, +% BoldItalicFont = *-\libertinus@boldstyle italic, + SmallCapsFeatures={Letters=SmallCaps}, +% Extension = .otf +] + \setsansfont{Libertinus Sans}[ Numbers = {\libertinus@figurealign, \libertinus@figurestyle} , Scale = \libertinusSF@scale , @@ -133,6 +234,31 @@ SmallCapsFeatures={Letters=SmallCaps}, % Extension = .otf ] + +\newfontfamily\LibertinusSansOsF{Libertinus Sans} +[ + Numbers = {OldStyle,Proportional} , + Scale = \libertinusSF@scale , +% UprightFont = *-regular, +% ItalicFont = *-italic, +% BoldFont = *-bold, +% BoldItalicFont = *-bolditalic, + SmallCapsFeatures={Letters=SmallCaps}, +% Extension = .otf +] + +\newfontfamily\LibertinusSansTLF{Libertinus Sans} +[ + Numbers = {Lining, Monospaced} , + Scale = \libertinusSF@scale , +% UprightFont = *-regular, +% ItalicFont = *-italic, +% BoldFont = *-bold, +% BoldItalicFont = *-bolditalic, + SmallCapsFeatures={Letters=SmallCaps}, +% Extension = .otf +] + \setmonofont{Libertinus Mono}[ % Numbers = {\libertinus@figurealign, \libertinus@figurestyle}, Scale = \libertinusTT@scale, @@ -147,6 +273,10 @@ \fi +\def\sufigures{\addfontfeatures{VerticalPosition=Superior}} +\DeclareTextFontCommand{\textsu}{\sufigures} + + \iflibertinus@nomath\else %\setmathfont{libertinusmath-regular.otf}[BoldFont=libertinusmath-bold.otf] \setmathfont{libertinusmath-regular.otf} @@ -156,6 +286,7 @@ \newfontfamily\LibertinusKeyboard{libertinuskeyboard-regular.otf} \newfontfamily\LibertinusDisplay{libertinusserifdisplay-regular.otf} \newfontfamily\Libertinusinitials{libertinusserifinitials-regular.otf} +\newfontfamily\LibertinusInitials{libertinusserifinitials-regular.otf} \def\biolinumKeyGlyph#1{{\LibertinusKeyboard\symbol{#1}}} \def\BiolinumKeyGlyph#1{{\LibertinusKeyboard#1}} |