summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-10-24 21:37:52 +0000
committerKarl Berry <karl@freefriends.org>2019-10-24 21:37:52 +0000
commit5f0042375acd9c4ce078135120062a1b2e210840 (patch)
tree83d652c7b2cd6b20711acb220b788fbad4f1c2b2 /Master/texmf-dist/tex
parentdb2a742e225501599e366e5d46b7495090bdeebf (diff)
libertinus-otf (24oct19)
git-svn-id: svn://tug.org/texlive/trunk@52518 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty220
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}