From ee91c5d24b76823b569e540348b026eeb05c4c56 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 4 Sep 2018 21:25:22 +0000
Subject: libertinus-type1 (4sep18)

git-svn-id: svn://tug.org/texlive/trunk@48580 c570f23f-e606-0410-a88d-b1316a301751
---
 .../latex/libertinus-type1/libertinus-type1.sty    | 192 +++++++++++++++++++++
 1 file changed, 192 insertions(+)
 create mode 100644 Master/texmf-dist/tex/latex/libertinus-type1/libertinus-type1.sty

(limited to 'Master/texmf-dist/tex/latex/libertinus-type1/libertinus-type1.sty')

diff --git a/Master/texmf-dist/tex/latex/libertinus-type1/libertinus-type1.sty b/Master/texmf-dist/tex/latex/libertinus-type1/libertinus-type1.sty
new file mode 100644
index 00000000000..c84968e4c60
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/libertinus-type1/libertinus-type1.sty
@@ -0,0 +1,192 @@
+\ProvidesPackage{libertinus-type1}[%
+  2018/09/01  (Bob Tennent) Supports libertinus fonts for latex/pdflatex.] 
+
+\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
+
+\RequirePackage{mweights,fontenc,fontaxes}
+
+\newif\iflibertinus@sf \libertinus@sftrue
+\newif\iflibertinus@rm \libertinus@rmtrue
+\newif\iflibertinus@tt \libertinus@tttrue                  
+\newif\iflibertinus@sfdefault \libertinus@sfdefaultfalse
+\newif\iflibertinus@semibold \libertinus@semiboldfalse
+
+\DeclareOptionX{sans}[true]{%
+\@nameuse{if#1}
+ \libertinus@sftrue\libertinus@rmfalse
+\fi
+}
+\DeclareOptionX{sf}[true]{%
+\@nameuse{if#1}
+ \libertinus@sftrue\libertinus@rmfalse
+\fi
+}
+\DeclareOptionX{ss}[true]{%
+\@nameuse{if#1}
+ \libertinus@sftrue\libertinus@rmfalse
+\fi
+}
+
+\DeclareOptionX{serif}[true]{%
+\@nameuse{if#1}
+  \libertinus@rmtrue\libertinus@sffalse
+\fi
+}
+\DeclareOptionX{rm}[true]{%
+\@nameuse{if#1}
+  \libertinus@rmtrue\libertinus@sffalse
+\fi
+}
+
+\DeclareOptionX{tt}[true]{%
+\@nameuse{libertinus@tt#1}
+}
+\DeclareOptionX{mono}[true]{%
+\@nameuse{libertinus@tt#1}
+}
+
+\DeclareOptionX{sfdefault}[true]{%
+\@nameuse{if#1}\libertinus@sftrue\libertinus@sfdefaulttrue\fi
+}
+
+\newif\iflibertinusserif@lining \libertinusserif@liningtrue
+\newif\iflibertinusserif@tabular \libertinusserif@tabulartrue
+\newif\iflibertinussans@lining \libertinussans@liningtrue  
+\newif\iflibertinussans@tabular \libertinussans@tabulartrue     
+
+
+\DeclareOptionX{lining}[true]{%
+\@nameuse{libertinusserif@lining#1}
+\@nameuse{libertinussans@lining#1}
+}
+\DeclareOptionX{nf}[true]{%
+\@nameuse{libertinusserif@lining#1}
+\@nameuse{libertinussans@lining#1}
+}
+\DeclareOptionX{lf}[true]{%
+\@nameuse{libertinusserif@lining#1}
+\@nameuse{libertinussans@lining#1}
+}
+\DeclareOptionX{oldstyle}[true]{%
+\@nameuse{if#1}
+  \libertinusserif@liningfalse
+  \libertinussans@liningfalse
+\else
+  \libertinusserif@liningtrue
+  \libertinussans@liningtrue
+\fi}
+\DeclareOptionX{osf}[true]{%
+\@nameuse{if#1}
+  \libertinusserif@liningfalse
+  \libertinussans@liningfalse
+\else
+  \libertinusserif@liningtrue
+  \libertinussans@liningtrue
+\fi}
+
+\DeclareOptionX{tabular}[true]{%
+  \@nameuse{libertinusserif@tabular#1}
+  \@nameuse{libertinussans@tabular#1}
+}
+\DeclareOptionX{t}[true]{%
+  \@nameuse{libertinusserif@tabular#1}
+  \@nameuse{libertinussans@tabular#1}
+}
+\DeclareOptionX{proportional}[true]{%
+\@nameuse{if#1}
+  \libertinusserif@tabularfalse
+  \libertinussans@tabularfalse
+\else
+  \libertinusserif@tabulartrue
+  \libertinussans@tabulartrue
+\fi}
+\DeclareOptionX{p}[true]{%
+\@nameuse{if#1}
+  \libertinusserif@tabularfalse
+  \libertinussans@tabularfalse
+\else
+  \libertinusserif@tabulartrue
+  \libertinussans@tabulartrue
+\fi}
+
+\DeclareOptionX{semibold}[true]{\@nameuse{libertinus@semibold#1}}
+\DeclareOptionX{sb}[true]{\@nameuse{libertinus@semibold#1}}
+\DeclareOptionX{bold}[true]{%
+\@nameuse{if#1}
+  \libertinus@semiboldfalse
+\else
+  \libertinus@semiboldtrue
+\fi}
+
+\newcommand*\LibertinusSerif@scale{1}  
+\newcommand*\LibertinusSerifDisplayT@scale{1} 
+\newcommand*\LibertinusSans@scale{1}
+\newcommand*\LibertinusMono@scale{0.85}  % cf. MatchLowerCase  
+\newcommand*\LibertinusSerifInitials@scale{1}  
+\DeclareOptionX{ScaleRM}{\renewcommand*{\LibertinusSerif@scale}{#1}}
+\DeclareOptionX{ScaleSF}{\renewcommand*{\LibertinusSans@scale}{#1}}
+\DeclareOptionX{ScaleTT}{\renewcommand*{\LibertinusMono@scale}{#1}}
+
+\ProcessOptionsX\relax
+
+\iflibertinusserif@lining
+  \def\libertinusserif@figurestyle{LF}
+\else
+  \def\libertinusserif@figurestyle{OsF}
+\fi
+
+\iflibertinusserif@tabular
+  \def\libertinusserif@figurealign{T} 
+\else
+  \def\libertinusserif@figurealign{} 
+\fi
+\iflibertinussans@lining
+  \def\libertinussans@figurestyle{LF}
+\else
+  \def\libertinussans@figurestyle{OsF}
+\fi
+
+\iflibertinussans@tabular
+  \def\libertinussans@figurealign{T} 
+\else
+  \def\libertinussans@figurealign{} 
+\fi
+
+\iflibertinus@semibold
+  \def\bfseries@rm{sb}
+\else
+  \def\bfseries@rm{b}
+\fi
+\iflibertinus@sf
+  \def\bfseries@sf{b}
+\fi
+
+
+\def\libertinusserif@family{LibertinusSerif-\libertinusserif@figurealign\libertinusserif@figurestyle}
+\def\libertinussans@family{LibertinusSans-\libertinussans@figurealign\libertinussans@figurestyle}
+\iflibertinus@rm \def\rmdefault{\libertinusserif@family} \fi
+\iflibertinus@sf \def\sfdefault{\libertinussans@family} \fi 
+\iflibertinus@sfdefault\edef\familydefault{\sfdefault}\fi
+\iflibertinus@tt \def\ttdefault{LibertinusMono-TLF} \fi
+\def\LibertinusSerif{\fontfamily{\libertinusserif@family}\selectfont}
+\def\LibertinusSerifSB{\fontfamily{\libertinusserif@family}\fontseries{sb}\selectfont}
+\def\LibertinusSerifOsF{\fontfamily{LibertinusSerif-OsF}\selectfont}
+\def\LibertinusSerifTLF{\fontfamily{LibertinusSerif-TLF}\selectfont}
+\def\LibertinusSans{\fontfamily{\libertinussans@family}\selectfont}
+\def\LibertinusSansOsF{\fontfamily{LibertinusSans-OsF}\selectfont}
+\def\LibertinusSansTLF{\fontfamily{LibertinusSans-TLF}\selectfont}
+\def\LibertinusMono{\fontfamily{LibertinusMono-TLF}\selectfont}
+\def\Libertinusinitials{\fontfamily{LibertinusSerifInitials-\libertinusserif@figurealign\libertinusserif@figurestyle}\selectfont}
+\def\LibertinusInitials{\fontfamily{LibertinusSerifInitials-\libertinusserif@figurealign\libertinusserif@figurestyle}\selectfont}
+\def\LibertinusDisplay{\fontfamily{LibertinusSerifDisplay-\libertinusserif@figurealign\libertinusserif@figurestyle}\selectfont}
+\def\LibertinusKeyboard{\fontfamily{LibertinusKeyboard-TLF}\selectfont}
+
+\fa@naming@exception{figures}{{superior}{proportional}}{Sup}
+\fa@naming@exception{figures}{{superior}{tabular}}{Sup}
+\def\sufigures{\@nomath\sufigures\fontfigurestyle{superior}\selectfont}
+\providecommand*\useosf{\edef\libertinusserif@figurestyle{OsF}\edef\libertinussans@figurestyle{OsF}%
+   \iflibertinusserif@rm \renewcommand*\rmdefault{LibertinusSerif-OsF}\fi
+   \iflibertinusserif@sf \renewcommand*\sfdefault{LibertinusSans-OsF}\fi}
+
+\DeclareTextFontCommand{\textsu}{\sufigures}
+\let\textsuperior\textsu
-- 
cgit v1.2.3

