diff options
author | Karl Berry <karl@freefriends.org> | 2018-09-04 21:21:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-09-04 21:21:17 +0000 |
commit | c1ae1cf2c9caefe26896211d001d0305b9110d17 (patch) | |
tree | 158613dc3e1485239002308fff8b06c607b8aeec /Master | |
parent | 8269b1f3082ab31373e25dc9e51a4d544d7ef046 (diff) |
libertinus-otf (4sep18)
git-svn-id: svn://tug.org/texlive/trunk@48579 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/fonts/libertinus-otf/Changes | 1 | ||||
-rw-r--r-- | Master/texmf-dist/doc/fonts/libertinus-otf/README.md | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/fonts/libertinus-otf/libertinus-otf-doc.pdf | bin | 448104 -> 467360 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/fonts/libertinus-otf/libertinus-otf-doc.tex | 57 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty | 143 |
5 files changed, 188 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/fonts/libertinus-otf/Changes b/Master/texmf-dist/doc/fonts/libertinus-otf/Changes index b579ae0abb0..7038445739a 100644 --- a/Master/texmf-dist/doc/fonts/libertinus-otf/Changes +++ b/Master/texmf-dist/doc/fonts/libertinus-otf/Changes @@ -1,3 +1,4 @@ +0.12 2018-09-03 - added some macros for short font select (hv,bt) 0.11a 2018-09-03 - fix for missing features in sans-bolditalic 0.11 2018-08-22 - fix bug with correct OS/2 names 0.10 2018-07-12 - added option nomath diff --git a/Master/texmf-dist/doc/fonts/libertinus-otf/README.md b/Master/texmf-dist/doc/fonts/libertinus-otf/README.md index 3f66fd6c283..c9cad7477ea 100644 --- a/Master/texmf-dist/doc/fonts/libertinus-otf/README.md +++ b/Master/texmf-dist/doc/fonts/libertinus-otf/README.md @@ -12,6 +12,6 @@ The four fonts which are missing in the libertinus package have the SIL Open Font License and derived from the ones in the liberinus package. -% Copyright 2017 Herbert Voss hvoss@tug.org -% +% Copyright 2018 Herbert Voss hvoss@tug.org +% Bob Tennent diff --git a/Master/texmf-dist/doc/fonts/libertinus-otf/libertinus-otf-doc.pdf b/Master/texmf-dist/doc/fonts/libertinus-otf/libertinus-otf-doc.pdf Binary files differindex 39cd5b5d046..95125b81b08 100644 --- a/Master/texmf-dist/doc/fonts/libertinus-otf/libertinus-otf-doc.pdf +++ b/Master/texmf-dist/doc/fonts/libertinus-otf/libertinus-otf-doc.pdf diff --git a/Master/texmf-dist/doc/fonts/libertinus-otf/libertinus-otf-doc.tex b/Master/texmf-dist/doc/fonts/libertinus-otf/libertinus-otf-doc.tex index 86777686029..acd7c8c32b9 100644 --- a/Master/texmf-dist/doc/fonts/libertinus-otf/libertinus-otf-doc.tex +++ b/Master/texmf-dist/doc/fonts/libertinus-otf/libertinus-otf-doc.tex @@ -1,4 +1,4 @@ -%% $Id: libertinus-otf-doc.tex 802 2018-09-03 10:38:34Z herbert $ +%% $Id: libertinus-otf-doc.tex 803 2018-09-03 19:43:59Z herbert $ \listfiles \documentclass[polish,english]{article} \usepackage{libertinus-otf} @@ -20,10 +20,11 @@ \item\relax} {\endlist\endgroup} +\def\Lcs#1{\texttt{\textbackslash#1}} \def\testfeature#1#2#3{{\fontspec[RawFeature={+#2}]{#1}#3\relax}} \title{OpenType font Libertinus} -\author{Herbert Voß} +\author{Herbert Voß \and Bob Tennent} \usepackage{parskip} \parindent=0pt @@ -334,10 +335,6 @@ zero Slashed Zero %$ - - - - \normalfont \section{Package options} @@ -475,14 +472,11 @@ defaultfeatures & valid for all fonts\\ \begin{externalDocument}[ -% grfOptions={width=0.5\linewidth}, frame,compiler=lualatex, crop, force=true, runs=2,code,docType=latex, frame, -% showFilename, -% align=\centering, lstOptions={columns=fixed}]{Libertinus} \documentclass{article} \pagestyle{empty} @@ -720,4 +714,49 @@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \normalfont + +\clearpage + + +\section{Font commands} +Instead of using the command \Lcs{fontspec} for changing to a different type of +a Libertinus font, one can use a predefinded command: + +\begin{verbatim} +\LibertinusSerifSB (SemiBold) +\LibertinusSerifOsF (Old style proportional figures) +\LibertinusSerifTLF (Lining figures monospaced) +\LibertinusSansOsF (Old style proportional figures) +\LibertinusSansTLF (Lining figures monospaced) +\end{verbatim} + + + +\begin{externalDocument}[ + frame,compiler=lualatex, + crop, + force=true, + runs=2,code,docType=latex, + frame, + lstOptions={columns=fixed}]{Libertinus} +\documentclass{article} +\pagestyle{empty} +%StartVisiblePreamble +\usepackage{libertinus} +%StopVisiblePreamble +\begin{document} +The default 0123456 +{\bfseries standard bold} +{\LibertinusSerifSB\bfseries SemiBold 0123456} +\LibertinusSerifOsF normal weight 0123456 +\LibertinusSerifTLF normal weight 0123456 +\LibertinusSansOsF normal weight 0123456 +\LibertinusSansTLF normal weght 0123456 +\end{document} +\end{externalDocument} + + + + + \end{document} 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}} |