diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty | 220 |
1 files changed, 140 insertions, 80 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 bd82cbda3de..553231b76d9 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 1099 2019-10-15 13:41:36Z herbert $ +%% $Id: libertinus-otf.sty 1100 2019-10-23 19:07:26Z 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,7 +8,7 @@ % Copyright 2019 Herbert Voss hvoss@tug.org and Bob Tennent rdt@cs.queensu.ca % \ProvidesPackage{libertinus-otf}[% - 2019/10/15 v. 0.21 (Herbert Voss and Bob Tennent) Supports libertinus fonts for lualatex and xelatex.] + 2019/10/23 v. 0.22 (Herbert Voss and Bob Tennent) Supports libertinus fonts for lualatex and xelatex.] \RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} %\RequirePackage[no-math]{fontspec} @@ -81,16 +81,21 @@ } \iflibertinus@usefilenames - +%------------------------ filenames start ------------------------- \setmainfont{LibertinusSerif}[ RawFeature = {\libertinus@figurealign;\libertinus@figurestyle}, Scale = \libertinusRM@scale , UprightFont = *-Regular, ItalicFont = *-Italic, + ItalicFeatures = { SmallCapsFont = *-Italic }, SlantedFont = *-Regular, SlantedFeatures= {FakeSlant=0.2}, - BoldFont = *-\libertinus@boldstyle, + BoldFont = *-\libertinus@boldstyle, + BoldFeatures = { SmallCapsFont = *-\libertinus@boldstyle }, BoldItalicFont = *-\libertinus@boldstyle Italic, + BoldItalicFeatures = { SmallCapsFont = *-\libertinus@boldstyle Italic }, + BoldSlantedFont= *-\libertinus@boldstyle, + BoldSlantedFeatures= {FakeSlant=0.2, SmallCapsFont = *-\libertinus@boldstyle }, SmallCapsFont = *-Regular, SmallCapsFeatures={RawFeature=+smcp}, % SmallCapsFeatures={Letters=SmallCaps}, @@ -102,10 +107,15 @@ Scale = \libertinusRM@scale, UprightFont = *-Regular, ItalicFont = *-Italic, + ItalicFeatures = { SmallCapsFont = *-Italic }, SlantedFont = *-Regular, SlantedFeatures= {FakeSlant=0.2}, BoldFont = *-Semibold, + BoldFeatures = { SmallCapsFont = *-Semibold }, BoldItalicFont = *-SemiboldItalic, + BoldItalicFeatures = { SmallCapsFont = *-SemiboldItalic }, + BoldSlantedFont= *-Semibold, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = *-Semibold }, SmallCapsFont = *-Regular, SmallCapsFeatures={RawFeature=+smcp}, % SmallCapsFeatures={Letters=SmallCaps}, @@ -117,10 +127,15 @@ Scale = \libertinusRM@scale , UprightFont = *-Regular, ItalicFont = *-Italic, + ItalicFeatures = { SmallCapsFont = *-Italic }, SlantedFont = *-Regular, SlantedFeatures= {FakeSlant=0.2}, BoldFont = *-\libertinus@boldstyle, + BoldFeatures = { SmallCapsFont = *-\libertinus@boldstyle }, BoldItalicFont = *-\libertinus@boldstyle Italic, + BoldItalicFeatures = { SmallCapsFont = *-\libertinus@boldstyle Italic }, + BoldSlantedFont= *-\libertinus@boldstyle, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = *-\libertinus@boldstyle }, SmallCapsFont = *-Regular, SmallCapsFeatures={RawFeature=+smcp}, % SmallCapsFeatures={Letters=SmallCaps}, @@ -132,10 +147,15 @@ Scale = \libertinusRM@scale , UprightFont = *-Regular, ItalicFont = *-Italic, + ItalicFeatures = { SmallCapsFont = *-Italic }, SlantedFont = *-Regular, SlantedFeatures= {FakeSlant=0.2}, BoldFont = *-\libertinus@boldstyle, + BoldFeatures = { SmallCapsFont = *-\libertinus@boldstyle }, BoldItalicFont = *-\libertinus@boldstyle Italic, + BoldItalicFeatures = { SmallCapsFont = *-\libertinus@boldstyle Italic }, + BoldSlantedFont= *-\libertinus@boldstyle, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = *-\libertinus@boldstyle }, SmallCapsFont = *-Regular, SmallCapsFeatures={RawFeature=+smcp}, % SmallCapsFeatures={Letters=SmallCaps}, @@ -144,18 +164,22 @@ \setsansfont{LibertinusSans}[ Extension = .otf, - RawFeature = {\libertinus@figurealign;\libertinus@figurestyle} , - Scale = \libertinusSF@scale , + RawFeature = {\libertinus@figurealign;\libertinus@figurestyle}, + Scale = \libertinusSF@scale, UprightFont = *-Regular, ItalicFont = *-Italic, + ItalicFeatures = { SmallCapsFont = *-Italic }, SlantedFont = *-Regular, SlantedFeatures= {FakeSlant=0.2}, BoldFont = *-Bold, + BoldFeatures = { SmallCapsFont = *-Bold }, BoldItalicFont = *-Italic, - BoldItalicFeatures = {RawFeature={embolden=3}}, + BoldItalicFeatures = {RawFeature={embolden=3},SmallCapsFont = *-Italic }, + BoldSlantedFont= *-Bold, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = *-Bold }, SmallCapsFont = *-Regular, SmallCapsFeatures={RawFeature=+smcp}, -% SmallCapsFeatures={Letters=SmallCaps}, + SmallCapsFeatures={Letters=SmallCaps}, ] \newfontfamily\LibertinusSansOsF{LibertinusSans}[ @@ -163,11 +187,15 @@ Scale = \libertinusSF@scale , UprightFont = *-Regular, ItalicFont = *-Italic, + ItalicFeatures = { SmallCapsFont = *-Italic }, SlantedFont = *-Regular, SlantedFeatures= {FakeSlant=0.2}, BoldFont = *-Bold, + BoldFeatures = { SmallCapsFont = *-Bold }, BoldItalicFont = *-Italic, BoldItalicFeatures = {RawFeature={embolden=3}}, + BoldSlantedFont= *-Bold, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = *-Bold }, SmallCapsFont = *-Regular, SmallCapsFeatures={RawFeature=+smcp}, % SmallCapsFeatures={Letters=SmallCaps}, @@ -179,9 +207,15 @@ Scale = \libertinusSF@scale , UprightFont = *-Regular, ItalicFont = *-Italic, + ItalicFeatures = { SmallCapsFont = *-Italic }, + SlantedFont = *-Regular, + SlantedFeatures= {FakeSlant=0.2}, BoldFont = *-Bold, + BoldFeatures = { SmallCapsFont = *-Bold }, BoldItalicFont = *-Italic, BoldItalicFeatures = {RawFeature={embolden=3}}, + BoldSlantedFont= *-Bold, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = *-Bold }, SmallCapsFont = *-Regular, SmallCapsFeatures={RawFeature=+smcp}, % SmallCapsFeatures={Letters=SmallCaps}, @@ -205,132 +239,158 @@ Extension = .otf, ] \fi - +%------------------------ filenames stop ------------------------- \else - +%------------------------ symbolic names start ------------------------- \setmainfont{Libertinus Serif}[ RawFeature = {\libertinus@figurealign,\libertinus@figurestyle}, - Scale = \libertinusRM@scale , -% UprightFont = * Regular, - SlantedFont = * Regular, - SlantedFeatures= {FakeSlant=0.2}, -% BoldFont = * Bold, % \libertinus@boldstyle, -% BoldItalicFont = * Bold Italic, %-\libertinus@boldstyle italic, - SmallCapsFont = * Regular, - SmallCapsFeatures={RawFeature=+smcp}, -% SmallCapsFeatures={Letters=SmallCaps}, -% Extension = .otf + Scale = \libertinusRM@scale , + UprightFont = * Regular, + SlantedFont = * Regular, + SlantedFeatures = {FakeSlant=0.2}, + ItalicFont = * Italic, + ItalicFeatures = { SmallCapsFont = * Italic }, + BoldFont = * \libertinus@boldstyle, + BoldFeatures = { SmallCapsFont = * \libertinus@boldstyle }, + BoldItalicFont = * \libertinus@boldstyle Italic, + BoldItalicFeatures= { SmallCapsFont = * \libertinus@boldstyle Italic }, + SmallCapsFont = * Regular, + SmallCapsFeatures = {RawFeature=+smcp}, + BoldSlantedFont = * \libertinus@boldstyle, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = * \libertinus@boldstyle }, +% SmallCapsFeatures = {Letters=SmallCaps}, ] - \newfontfamily\LibertinusSerif{Libertinus Serif}[ RawFeature = {\libertinus@figurealign,\libertinus@figurestyle}, - Scale = \libertinusRM@scale , -% UprightFont = *-Regular, -% ItalicFont = *-Italic, -% BoldFont = *-\libertinus@boldstyle, -% BoldItalicFont = *-\libertinus@boldstyle italic, - SlantedFont = * Regular, - SlantedFeatures= {FakeSlant=0.2}, - SmallCapsFont = * Regular, - SmallCapsFeatures={RawFeature=+smcp}, -% SmallCapsFeatures={Letters=SmallCaps}, -% Extension = .otf + Scale = \libertinusRM@scale , + UprightFont = * Regular, + SlantedFont = * Regular, + SlantedFeatures = {FakeSlant=0.2}, + ItalicFont = * Italic, + ItalicFeatures = { SmallCapsFont = * Italic }, + BoldFont = * \libertinus@boldstyle, + BoldFeatures = { SmallCapsFont = * \libertinus@boldstyle }, + BoldItalicFont = * \libertinus@boldstyle Italic, + BoldItalicFeatures= { SmallCapsFont = * \libertinus@boldstyle Italic }, + SmallCapsFont = * Regular, + SmallCapsFeatures = {RawFeature=+smcp}, + BoldSlantedFont = * \libertinus@boldstyle, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = * \libertinus@boldstyle }, +% SmallCapsFeatures = {Letters=SmallCaps}, ] - -\newfontfamily\LibertnusSerifSB{Libertinus Serif}[ +\newfontfamily\LibertinusSerifSB{Libertinus Serif}[ RawFeature = {\libertinus@figurealign,\libertinus@figurestyle}, - Scale = \libertinusRM@scale , -% UprightFont = *-Regular, -% ItalicFont = *-Italic, - SlantedFont = *-Regular, - SlantedFeatures= {FakeSlant=0.2}, - BoldFont = * Semibold, - BoldItalicFont = * Semibold Italic, - SmallCapsFont = *-Regular, - SmallCapsFeatures={RawFeature=+smcp}, -% SmallCapsFeatures={Letters=SmallCaps}, -% Extension = .otf + Scale = \libertinusRM@scale , + UprightFont = * Regular, + SlantedFont = * Regular, + SlantedFeatures = {FakeSlant=0.2}, + ItalicFont = * Italic, + ItalicFeatures = { SmallCapsFont = * Italic }, + BoldFont = * Semibold, + BoldFeatures = { SmallCapsFont = * Semibold}, + BoldItalicFont = * SemiboldItalic, + BoldItalicFeatures= { SmallCapsFont = * SemiboldItalic }, + SmallCapsFont = * Regular, + SmallCapsFeatures = {RawFeature=+smcp}, + BoldSlantedFont = * Semibold, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = * Semibold}, +% SmallCapsFeatures = {Letters=SmallCaps}, ] - \newfontfamily\LibertinusSerifOsF{Libertinus Serif}[ RawFeature = {OldStyle,Proportional}, - Scale = \libertinusRM@scale , -% UprightFont = *-Regular, -% ItalicFont = *-Italic, - SlantedFont = *-Regular, - SlantedFeatures= {FakeSlant=0.2}, -% BoldFont = *-\libertinus@boldstyle, -% BoldItalicFont = *-\libertinus@boldstyle italic, - SmallCapsFont = *-Regular, - SmallCapsFeatures={RawFeature=+smcp}, -% SmallCapsFeatures={Letters=SmallCaps}, -% Extension = .otf + Scale = \libertinusRM@scale , + UprightFont = * Regular, + SlantedFont = * Regular, + SlantedFeatures = {FakeSlant=0.2}, + ItalicFont = * Italic, + ItalicFeatures = { SmallCapsFont = * Italic }, + BoldFont = * \libertinus@boldstyle, + BoldFeatures = { SmallCapsFont = * \libertinus@boldstyle }, + BoldItalicFont = * \libertinus@boldstyle Italic, + BoldItalicFeatures= { SmallCapsFont = * \libertinus@boldstyle Italic }, + SmallCapsFont = * Regular, + SmallCapsFeatures = {RawFeature=+smcp}, + BoldSlantedFont = * \libertinus@boldstyle, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = * \libertinus@boldstyle }, +% SmallCapsFeatures = {Letters=SmallCaps}, ] \newfontfamily\LibertinusSerifTLF{Libertinus Serif}[ RawFeature = {Lining,Monospaced}, - Scale = \libertinusRM@scale , -% UprightFont = *-Regular, -% ItalicFont = *-Italic, - SlantedFont = *-Regular, - SlantedFeatures= {FakeSlant=0.2}, -% BoldFont = *-\libertinus@boldstyle, -% BoldItalicFont = *-\libertinus@boldstyle italic, - SmallCapsFont = *-Regular, - SmallCapsFeatures={RawFeature=+smcp}, -% SmallCapsFeatures={Letters=SmallCaps}, -% Extension = .otf + Scale = \libertinusRM@scale , + UprightFont = * Regular, + SlantedFont = * Regular, + SlantedFeatures = {FakeSlant=0.2}, + ItalicFont = * Italic, + ItalicFeatures = { SmallCapsFont = * Italic }, + BoldFont = * \libertinus@boldstyle, + BoldFeatures = { SmallCapsFont = * \libertinus@boldstyle }, + BoldItalicFont = * \libertinus@boldstyle Italic, + BoldItalicFeatures= { SmallCapsFont = * \libertinus@boldstyle Italic }, + SmallCapsFont = * Regular, + SmallCapsFeatures = {RawFeature=+smcp}, + BoldSlantedFont = * \libertinus@boldstyle, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = * \libertinus@boldstyle }, +% SmallCapsFeatures = {Letters=SmallCaps}, ] \setsansfont{Libertinus Sans}[ - RawFeature = {\libertinus@figurealign, \libertinus@figurestyle} , - Scale = \libertinusSF@scale , + RawFeature = {\libertinus@figurealign;\libertinus@figurestyle}, + Scale = \libertinusSF@scale, UprightFont = * Regular, ItalicFont = * Italic, + ItalicFeatures = { SmallCapsFont = * Italic }, SlantedFont = * Regular, SlantedFeatures= {FakeSlant=0.2}, BoldFont = * Bold, + BoldFeatures = { SmallCapsFont = * Bold }, BoldItalicFont = * Italic, - BoldItalicFeatures = {RawFeature={embolden=3}}, - SmallCapsFont = * Regular, + BoldItalicFeatures = {RawFeature={embolden=3},SmallCapsFont = * Italic }, + BoldSlantedFont= * Bold, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = * Bold }, + SmallCapsFont = * Regular, SmallCapsFeatures={RawFeature=+smcp}, -% SmallCapsFeatures={Letters=SmallCaps}, + SmallCapsFeatures={Letters=SmallCaps}, ] -\newfontfamily\LibertinusSansOsF{Libertinus Sans} -[ +\newfontfamily\LibertinusSansOsF{Libertinus Sans}[ RawFeature = {OldStyle,Proportional} , Scale = \libertinusSF@scale , UprightFont = * Regular, ItalicFont = * Italic, + ItalicFeatures = { SmallCapsFont = * Italic }, SlantedFont = * Regular, SlantedFeatures= {FakeSlant=0.2}, BoldFont = * Bold, + BoldFeatures = { SmallCapsFont = * Bold }, BoldItalicFont = * Italic, BoldItalicFeatures = {RawFeature={embolden=3}}, SmallCapsFont = * Regular, SmallCapsFeatures={RawFeature=+smcp}, + BoldSlantedFont= * Bold, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = * Bold }, % SmallCapsFeatures={Letters=SmallCaps}, % Extension = .otf ] - -\newfontfamily\LibertinusSansTLF{Libertinus Sans} -[ +\newfontfamily\LibertinusSansTLF{Libertinus Sans}[ RawFeature = {Lining, Monospaced} , Scale = \libertinusSF@scale , UprightFont = * Regular, ItalicFont = * Italic, + ItalicFeatures = { SmallCapsFont = * Italic }, SlantedFont = * Regular, SlantedFeatures= {FakeSlant=0.2}, BoldFont = * Bold, + BoldFeatures = { SmallCapsFont = * Bold }, BoldItalicFont = * Italic, BoldItalicFeatures = {RawFeature={embolden=3}}, SmallCapsFont = *-Regular, SmallCapsFeatures={RawFeature=+smcp}, + BoldSlantedFont= * Bold, + BoldSlantedFeatures = {FakeSlant=0.2, SmallCapsFont = * Bold }, % SmallCapsFeatures={Letters=SmallCaps}, % Extension = .otf ] - \iflibertinus@mono \setmonofont{Libertinus Mono}[ % RawFeature = {\libertinus@figurealign, \libertinus@figurestyle}, @@ -347,8 +407,8 @@ BoldItalicFeatures={FakeSlant=0.2,RawFeature={embolden=3}}, ] \fi - \fi +%------------------------ symbolic names stop ------------------------- \def\sufigures{\addfontfeatures{VerticalPosition=Superior}} \DeclareTextFontCommand{\textsu}{\sufigures} |