From 2feab580b97f7a8ccb0672d2e65e6283ab561afd Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 20 Sep 2019 21:31:42 +0000 Subject: libertinus-otf (20sep19) git-svn-id: svn://tug.org/texlive/trunk@52132 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/fonts/libertinus-otf/Changes | 3 + .../texmf-dist/doc/fonts/libertinus-otf/README.md | 7 +- .../fonts/libertinus-otf/libertinus-otf-doc.pdf | Bin 401409 -> 256584 bytes .../fonts/libertinus-otf/libertinus-otf-doc.tex | 185 ++++++++++++------- .../public/libertinus-otf/LibertinusMath-Bold.otf | Bin 1080596 -> 0 bytes .../public/libertinus-otf/LibertinusMono-Bold.otf | Bin 1610584 -> 0 bytes .../libertinus-otf/LibertinusMono-BoldOblique.otf | Bin 1651304 -> 0 bytes .../libertinus-otf/LibertinusMono-Oblique.otf | Bin 1411328 -> 0 bytes .../libertinus-otf/LibertinusSans-BoldItalic.otf | Bin 610924 -> 0 bytes .../tex/latex/libertinus-otf/libertinus-otf.sty | 203 +++++++++++++-------- 10 files changed, 251 insertions(+), 147 deletions(-) delete mode 100644 Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMath-Bold.otf delete mode 100644 Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMono-Bold.otf delete mode 100644 Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMono-BoldOblique.otf delete mode 100644 Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMono-Oblique.otf delete mode 100644 Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusSans-BoldItalic.otf diff --git a/Master/texmf-dist/doc/fonts/libertinus-otf/Changes b/Master/texmf-dist/doc/fonts/libertinus-otf/Changes index 376d1c811f1..d0fa24c8bd9 100644 --- a/Master/texmf-dist/doc/fonts/libertinus-otf/Changes +++ b/Master/texmf-dist/doc/fonts/libertinus-otf/Changes @@ -1,3 +1,6 @@ +0.20 2019-09-20 - use the feature setting for the missing fonts + and do nit create own ones. +0.17 2019-06-07 - added macro \Wikipedia, new feature setting 0.16 2019-05-30 - fix for introduced bug for \XeTeX and Keyboard font 0.15 2019-05-30 - fix for keyboard symbols - changed LibertinusSans-BoldOblique to diff --git a/Master/texmf-dist/doc/fonts/libertinus-otf/README.md b/Master/texmf-dist/doc/fonts/libertinus-otf/README.md index 303ab73a20a..5513e8aa1b8 100644 --- a/Master/texmf-dist/doc/fonts/libertinus-otf/README.md +++ b/Master/texmf-dist/doc/fonts/libertinus-otf/README.md @@ -1,16 +1,13 @@ # README # Package libertinus-otf supports the free fonts from -ctan.org/fonts/libertinus and installs additionally math-bold, -mono-bold and mono-italic +ctan.org/fonts/libertinus and defines the missing ones +via several font feature setting. % 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. % % -The four fonts which are missing in the libertinus package -have the SIL Open Font License and are derived from the ones -in the libertinus-fonts package. % Copyright 2019 Herbert Voss hvoss@tug.org 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 index e7f0f5e5496..e3ca3590cfa 100644 Binary files a/Master/texmf-dist/doc/fonts/libertinus-otf/libertinus-otf-doc.pdf and b/Master/texmf-dist/doc/fonts/libertinus-otf/libertinus-otf-doc.pdf differ 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 e7a6c2ed15e..2e998429d4b 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 1070 2019-05-31 04:01:49Z herbert $ +%% $Id: libertinus-otf-doc.tex 1086 2019-09-20 13:39:09Z herbert $ \listfiles \documentclass[polish,english]{article} \usepackage{libertinus-otf} @@ -21,7 +21,8 @@ \item\relax} {\endlist\endgroup} -\def\Lcs#1{\texttt{\textbackslash#1}} +\def\Lcs#1{\texttt{\textbackslash#1}\index{#1@\\texttt{\textbackslash#1}}} +\def\Lpack#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Package!#1@\texttt{#1}}} \def\testfeature#1#2#3{{\fontspec[RawFeature={+#2}]{#1}#3\relax}} \title{OpenType font Libertinus} @@ -44,7 +45,7 @@ math font. \section{The default setting} -The font package \texttt{libertinus} installs the following OpenType fonts: +The font package \Lpack{libertinus-fonts} installs the following OpenType fonts: \begin{verbatim} LibertinusSerif-Regular.otf @@ -66,65 +67,119 @@ LibertinusMono-Regular.otf ----------------------------------- LibertinusMath-Regular.otf ----------------------------------- - - - - - -\end{verbatim} - -The package liberinus-otf installs the additional ones: - -\begin{verbatim} -LibertinusMono-Oblique.otf -LibertinusMono-Bold.otf -LibertinusMono-BoldOblique.otf - -LibertinusSans-BoldOblique.otf - -LibertinusMath-Bold.otf \end{verbatim} -all created with \textsc{FontForge}. - -With the package \texttt{libertinus-otf} the serif, sans, mono, and math fonts are set +With the package \Lpack{libertinus-otf} the serif, sans, mono, and math fonts are set as usual: \begin{verbatim} \RequirePackage{unicode-math} \setmainfont{LibertinusSerif}[ - Numbers = {\libertinus@figurealign,\libertinus@figurestyle}, + RawFeature = {\libertinus@figurealign;\libertinus@figurestyle}, + Scale = \libertinusRM@scale , + UprightFont = *-Regular, + ItalicFont = *-Italic, + BoldFont = *-\libertinus@boldstyle, + BoldItalicFont = *-\libertinus@boldstyle Italic, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, + Extension = .otf +] + +\newfontfamily\LibertinusSerifSB{LibertinusSerif}[ + RawFeature = {\libertinus@figurealign;\libertinus@figurestyle}, + Scale = \libertinusRM@scale, + UprightFont = *-Regular, + ItalicFont = *-Italic, + BoldFont = *-Semibold, + BoldItalicFont = *-SemiboldItalic, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, + Extension = .otf +] + +\newfontfamily\LibertinusSerifOsF{LibertinusSerif}[ + RawFeature = {+onum}, + Scale = \libertinusRM@scale , + UprightFont = *-Regular, + ItalicFont = *-Italic, + BoldFont = *-\libertinus@boldstyle, + BoldItalicFont = *-\libertinus@boldstyle Italic, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, + Extension = .otf +] + +\newfontfamily\LibertinusSerifTLF{LibertinusSerif}[ + RawFeature = {+tnum;-onum}, Scale = \libertinusRM@scale , UprightFont = *-Regular, ItalicFont = *-Italic, BoldFont = *-\libertinus@boldstyle, BoldItalicFont = *-\libertinus@boldstyle Italic, - SmallCapsFeatures={Letters=SmallCaps}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, Extension = .otf ] + \setsansfont{LibertinusSans}[ - Numbers = {\libertinus@figurealign,\libertinus@figurestyle} , + Extension = .otf, + RawFeature = {\libertinus@figurealign;\libertinus@figurestyle} , + Scale = \libertinusSF@scale , + UprightFont = *-Regular, + ItalicFont = *-Italic, + BoldFont = *-Bold, + BoldItalicFont = *-Italic, + BoldItalicFeatures = {RawFeature={embolden=3}}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, +] + +\newfontfamily\LibertinusSansOsF{LibertinusSans}[ + RawFeature = {+onum;+pnum}, + Scale = \libertinusSF@scale , + UprightFont = *-Regular, + ItalicFont = *-Italic, + BoldFont = *-Bold, + BoldItalicFont = *-Italic, + BoldItalicFeatures = {RawFeature={embolden=3}}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, + Extension = .otf +] + +\newfontfamily\LibertinusSansTLF{LibertinusSans}[ + RawFeature = {+lnum;-onum;+tnum} , Scale = \libertinusSF@scale , UprightFont = *-Regular, ItalicFont = *-Italic, BoldFont = *-Bold, - BoldItalicFont = *-BoldOblique, - SmallCapsFeatures={Letters=SmallCaps}, + BoldItalicFont = *-Italic, + BoldItalicFeatures = {RawFeature={embolden=3}}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, Extension = .otf ] + +\iflibertinus@mono \setmonofont{LibertinusMono}[ + RawFeature = {\libertinus@figurealign; \libertinus@figurestyle}, Scale = \libertinusTT@scale, FakeStretch = 0.8, UprightFont = *-Regular, - ItalicFont = *-Oblique, - BoldFont = *-Bold, - BoldItalicFont = *-BoldOblique, + ItalicFont = *-Regular, + ItalicFeatures = {FakeSlant=0.2}, + BoldFont = *-Regular, + BoldFeatures = {RawFeature={embolden=3}}, + BoldItalicFont = *-Regular, + BoldItalicFeatures={FakeSlant=0.2,RawFeature={embolden=3}}, Extension = .otf, ] -\setmathfont{LibertinusMath-Regular.otf}[BoldFont=LibertinusMath-Bold.otf] +\setmathfont{LibertinusMath-Regular.otf}%[BoldFont=LibertinusMath-Bold.otf] +\setmathfont[version=bold,RawFeature={embolden=3}]{LibertinusMath-Regular.otf} \newfontfamily\LibertinusKeyboard{libertinuskeyboard-regular.otf} \newfontfamily\LibertinusDisplay{libertinusserifdisplay-regular.otf} @@ -275,9 +330,9 @@ However, by default the package loads the Libertinus Mono font: -.,mnbvcxy<\#äölkjhgfdsa+üpoiuztrewq\textasciicircum{}234567890ß'`?=)(/\&\%\$§"!°QWERTZUIOPÜ*'ÄÖLKJHGFDSA>YXCVBNM;:\_\\ \itshape -.,mnbvcxy<\#äölkjhgfdsa+üpoiuztrewq\textasciicircum{}234567890ß'`?=)(/\&\%\$§"!°QWERTZUIOPÜ*'ÄÖLKJHGFDSA>YXCVBNM;:\_\\ -\bfseries +\bfseries -.,mnbvcxy<\#äölkjhgfdsa+üpoiuztrewq\textasciicircum{}234567890ß'`?=)(/\&\%\$§"!°QWERTZUIOPÜ*'ÄÖLKJHGFDSA>YXCVBNM;:\_\\ -\mdseries +\upshape -.,mnbvcxy<\#äölkjhgfdsa+üpoiuztrewq\textasciicircum{}234567890ß'`?=)(/\&\%\$§"!°QWERTZUIOPÜ*'ÄÖLKJHGFDSA>YXCVBNM;:\_\\ \normalfont\normalsize @@ -368,11 +423,11 @@ Possible optional arguments are \noindent \begin{tabular}{@{} >{\ttfamily}l l @{}} oldstyle, osf & old-style figures \\ -lining, nf, lf & lining figures\\ +lining, nf, lf & lining figures (default)\\ proportional, p & varying-width figures\\ -tabular, t & fixed-width figures \\ -%semibold, sb & semibold version\\ -%bold & bold version\\\hline +tabular, t & fixed-width figures (default)\\ +semibold, sb & semibold version\\ +bold & bold version (default)\\\hline ScaleRM & scaling for the serif font, preset to 1\\ ScaleSF & scaling for the sans serif font, preset to 1\\ ScaleTT & scaling for the mono font, preset to \texttt{MatchLowercase}\\\hline @@ -387,7 +442,7 @@ defaultfeatures & valid for all fonts\\ % grfOptions={width=0.5\linewidth}, frame,compiler=lualatex, crop, - force=true, + force=false, runs=2,code,docType=latex, frame, % showFilename, @@ -408,7 +463,7 @@ defaultfeatures & valid for all fonts\\ % grfOptions={width=0.5\linewidth}, compiler=lualatex, crop, - force=true, + force=false, runs=2,code,docType=latex, frame, % showFilename, @@ -432,7 +487,7 @@ defaultfeatures & valid for all fonts\\ % grfOptions={width=0.5\linewidth}, frame,compiler=lualatex, crop, - force=true, + force=false, runs=2,code,docType=latex, frame, % showFilename, @@ -444,7 +499,9 @@ defaultfeatures & valid for all fonts\\ \usepackage[t=false]{libertinus-otf} %StopVisiblePreamble \begin{document} -0000111122223333444455556666777788889999\par abcdefghijklmn +0000111122223333444455556666777788889999\par +\addfontfeatures{RawFeature=+tnum}% +0000111122223333444455556666777788889999 \end{document} \end{externalDocument} @@ -453,7 +510,7 @@ defaultfeatures & valid for all fonts\\ % grfOptions={width=0.5\linewidth}, frame,compiler=lualatex, crop, - force=true, + force=false, runs=2,code,docType=latex, frame, % showFilename, @@ -465,7 +522,9 @@ defaultfeatures & valid for all fonts\\ \usepackage[p]{libertinus-otf} %StopVisiblePreamble \begin{document} -0000111122223333444455556666777788889999\par abcdefghijklmn +0000111122223333444455556666777788889999\par +\addfontfeatures{RawFeature=-pnum}% +0000111122223333444455556666777788889999 \end{document} \end{externalDocument} @@ -477,7 +536,7 @@ defaultfeatures & valid for all fonts\\ % grfOptions={width=0.5\linewidth}, frame,compiler=lualatex, crop, - force=true, + force=false, runs=2,code,docType=latex, frame, % showFilename, @@ -489,7 +548,7 @@ defaultfeatures & valid for all fonts\\ \usepackage{libertinus-otf} %StopVisiblePreamble \begin{document} -ÄËÖ\par\defaultfontfeatures{StylisticSet=1}\fontspec{Libertinus Serif} +ÄËÖ\par\addfontfeatures{RawFeature=+ss01} ÄËÖ \end{document} \end{externalDocument} @@ -499,7 +558,7 @@ defaultfeatures & valid for all fonts\\ \begin{externalDocument}[ frame,compiler=lualatex, crop, - force=true, + force=false, runs=2,code,docType=latex, frame, lstOptions={columns=fixed}]{Libertinus} @@ -509,7 +568,7 @@ defaultfeatures & valid for all fonts\\ \usepackage{libertinus-otf} %StopVisiblePreamble \begin{document} -JKR\par\defaultfontfeatures{StylisticSet=2}\fontspec{Libertinus Serif} +JKR\par\addfontfeatures{RawFeature=+ss02} JKR \end{document} \end{externalDocument} @@ -519,7 +578,7 @@ JKR % grfOptions={width=0.5\linewidth}, frame,compiler=lualatex, crop, - force=true, + force=false, runs=2,code,docType=latex, frame, % showFilename, @@ -531,16 +590,19 @@ JKR \usepackage{libertinus-otf} %StopVisiblePreamble \begin{document} -{ß\defaultfontfeatures{StylisticSet=3}\fontspec{Libertinus Serif}ß}\par -ẞ\defaultfontfeatures{StylisticSet=4}\fontspec{Libertinus Serif}ẞ +{ß\addfontfeatures{RawFeature=+ss03}ß}\par +ẞ\addfontfeatures{RawFeature=+ss04}ẞ \end{document} \end{externalDocument} + + + \begin{externalDocument}[ % grfOptions={width=0.5\linewidth}, frame,compiler=lualatex, crop, - force=true, + force=false, runs=2,code,docType=latex, frame, % showFilename, @@ -554,8 +616,10 @@ JKR \begin{document} \huge W -\defaultfontfeatures{StylisticSet=5}\fontspec{Libertinus Serif} +\addfontfeatures{RawFeature=+ss05} W +\verb=\Wikipedia=% +$\rightarrow$\Wikipedia \end{document} \end{externalDocument} @@ -565,7 +629,7 @@ W % grfOptions={width=0.5\linewidth}, frame,compiler=lualatex, crop, - force=true, + force=false, runs=2,code,docType=latex, frame, % showFilename, @@ -578,7 +642,7 @@ W %StopVisiblePreamble \begin{document} \huge\& -\defaultfontfeatures{StylisticSet=6}\fontspec{Libertinus Serif} +\addfontfeatures{RawFeature=+ss06} \& \end{document} \end{externalDocument} @@ -766,6 +830,7 @@ Taka Albo tace Usta pęk ucha. 0 1 2 3 4 5 6 7 8 9 0 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 Ä \symbol{"00C5} \symbol{"00C6} \symbol{"00C7} Ö \symbol{"00D8} \symbol{"00DC} \symbol{"00DF} +\iffalse \symbol{"0132} \symbol{"014A} \symbol{"0150} \symbol{"0152} \symbol{"0170} \multido{\nA=913+1}{17}{\symbol{\nA} } \multido{\nA=931+1}{7}{\symbol{\nA} } @@ -779,7 +844,7 @@ 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 \symbol{"E040} \symbol{"E041} \symbol{"E042} \multido{\nA=65537+1}{42}{\symbol{\nA} } \multido{\nA=65580+1}{11}{\symbol{\nA} } - +\fi \normalfont @@ -790,17 +855,17 @@ 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} +%\LibertinusSerifTLF (Lining figures monospaced) +%\LibertinusSansTLF (Lining figures monospaced) \begin{externalDocument}[ frame,compiler=lualatex, crop, - force=true, + force=false, runs=2,code,docType=latex, frame, lstOptions={columns=fixed}]{Libertinus} @@ -814,9 +879,7 @@ 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} diff --git a/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMath-Bold.otf b/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMath-Bold.otf deleted file mode 100644 index 72c7e981f5f..00000000000 Binary files a/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMath-Bold.otf and /dev/null differ diff --git a/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMono-Bold.otf b/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMono-Bold.otf deleted file mode 100644 index c9b842e8038..00000000000 Binary files a/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMono-Bold.otf and /dev/null differ diff --git a/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMono-BoldOblique.otf b/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMono-BoldOblique.otf deleted file mode 100644 index c12ce72d4ec..00000000000 Binary files a/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMono-BoldOblique.otf and /dev/null differ diff --git a/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMono-Oblique.otf b/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMono-Oblique.otf deleted file mode 100644 index a341a3a582c..00000000000 Binary files a/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusMono-Oblique.otf and /dev/null differ diff --git a/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusSans-BoldItalic.otf b/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusSans-BoldItalic.otf deleted file mode 100644 index 372922502bb..00000000000 Binary files a/Master/texmf-dist/fonts/opentype/public/libertinus-otf/LibertinusSans-BoldItalic.otf and /dev/null differ 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 973a237f7bc..ea18894398d 100644 --- a/Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty +++ b/Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty @@ -1,16 +1,17 @@ -%% $Id: libertinus-otf.sty 1070 2019-05-31 04:01:49Z herbert $ +%% $Id: libertinus-otf.sty 1086 2019-09-20 13:39:09Z 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 and Bob Tennent rdt@cs.queensu.ca +% Copyright 2019 Herbert Voss hvoss@tug.org and Bob Tennent rdt@cs.queensu.ca % \ProvidesPackage{libertinus-otf}[% - 2019/05/31 v. 0.16 (Herbert Voss and Bob Tennent) Supports libertinus fonts for lualatex and xelatex.] + 2019/09/20 v. 0.20 (Herbert Voss and Bob Tennent) Supports libertinus fonts for lualatex and xelatex.] \RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} +%\RequirePackage[no-math]{fontspec} \RequirePackage{unicode-math} \newif\iflibertinus@mono \libertinus@monotrue @@ -54,15 +55,15 @@ \ProcessOptionsX\relax \iflibertinus@lining - \def\libertinus@figurestyle{Lining} + \def\libertinus@figurestyle{+lnum} \else - \def\libertinus@figurestyle{OldStyle} + \def\libertinus@figurestyle{+onum} \fi \iflibertinus@tabular - \def\libertinus@figurealign{Monospaced} + \def\libertinus@figurealign{+tnum} \else - \def\libertinus@figurealign{Proportional} + \def\libertinus@figurealign{+pnum} \fi \iflibertinus@semibold @@ -75,98 +76,118 @@ \ifxetex\XeTeXtracingfonts=1\fi \defaultfontfeatures{ Ligatures = TeX , - SmallCapsFeatures={Letters=SmallCaps\ifluatex,Renderer=Basic\fi} , + SmallCapsFeatures={Letters=SmallCaps\ifluatex,Renderer=Basic\fi}, \libertinus@defaultfeatures } \iflibertinus@usefilenames \setmainfont{LibertinusSerif}[ - Numbers = {\libertinus@figurealign,\libertinus@figurestyle}, + RawFeature = {\libertinus@figurealign;\libertinus@figurestyle}, Scale = \libertinusRM@scale , UprightFont = *-Regular, ItalicFont = *-Italic, BoldFont = *-\libertinus@boldstyle, BoldItalicFont = *-\libertinus@boldstyle Italic, - SmallCapsFeatures={Letters=SmallCaps}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, Extension = .otf ] \newfontfamily\LibertinusSerifSB{LibertinusSerif}[ - Numbers = {\libertinus@figurealign,\libertinus@figurestyle}, + RawFeature = {\libertinus@figurealign;\libertinus@figurestyle}, Scale = \libertinusRM@scale, UprightFont = *-Regular, ItalicFont = *-Italic, BoldFont = *-Semibold, BoldItalicFont = *-SemiboldItalic, - SmallCapsFeatures={Letters=SmallCaps}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, Extension = .otf ] \newfontfamily\LibertinusSerifOsF{LibertinusSerif}[ - Numbers = {OldStyle,Proportional}, + RawFeature = {+onum}, Scale = \libertinusRM@scale , UprightFont = *-Regular, ItalicFont = *-Italic, BoldFont = *-\libertinus@boldstyle, BoldItalicFont = *-\libertinus@boldstyle Italic, - SmallCapsFeatures={Letters=SmallCaps}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, Extension = .otf ] \newfontfamily\LibertinusSerifTLF{LibertinusSerif}[ - Numbers = {Lining,Monospaced}, + RawFeature = {+tnum;-onum}, Scale = \libertinusRM@scale , UprightFont = *-Regular, ItalicFont = *-Italic, BoldFont = *-\libertinus@boldstyle, BoldItalicFont = *-\libertinus@boldstyle Italic, - SmallCapsFeatures={Letters=SmallCaps}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, Extension = .otf ] \setsansfont{LibertinusSans}[ - Numbers = {\libertinus@figurealign,\libertinus@figurestyle} , - Scale = \libertinusSF@scale , + Extension = .otf, + RawFeature = {\libertinus@figurealign;\libertinus@figurestyle} , + Scale = \libertinusSF@scale , UprightFont = *-Regular, ItalicFont = *-Italic, BoldFont = *-Bold, - BoldItalicFont = *-BoldItalic, - SmallCapsFeatures={Letters=SmallCaps}, - Extension = .otf + BoldItalicFont = *-Italic, + BoldItalicFeatures = {RawFeature={embolden=3}}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, ] \newfontfamily\LibertinusSansOsF{LibertinusSans}[ - Numbers = {OldStyle,Proportional} , + RawFeature = {+onum;+pnum}, Scale = \libertinusSF@scale , UprightFont = *-Regular, ItalicFont = *-Italic, BoldFont = *-Bold, - BoldItalicFont = *-BoldItalic, - SmallCapsFeatures={Letters=SmallCaps}, + BoldItalicFont = *-Italic, + BoldItalicFeatures = {RawFeature={embolden=3}}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, Extension = .otf ] \newfontfamily\LibertinusSansTLF{LibertinusSans}[ - Numbers = {Lining, Monospaced} , + RawFeature = {+lnum;-onum;+tnum} , Scale = \libertinusSF@scale , UprightFont = *-Regular, ItalicFont = *-Italic, BoldFont = *-Bold, - BoldItalicFont = *-BoldItalic, - SmallCapsFeatures={Letters=SmallCaps}, + BoldItalicFont = *-Italic, + BoldItalicFeatures = {RawFeature={embolden=3}}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, Extension = .otf ] \iflibertinus@mono \setmonofont{LibertinusMono}[ -% Numbers = {\libertinus@figurealign, \libertinus@figurestyle}, + RawFeature = {\libertinus@figurealign; \libertinus@figurestyle}, Scale = \libertinusTT@scale, FakeStretch = 0.8, UprightFont = *-Regular, - ItalicFont = *-Oblique, - BoldFont = *-Bold, - BoldItalicFont = *-BoldOblique, + ItalicFont = *-Regular, + ItalicFeatures = {FakeSlant=0.2}, + BoldFont = *-Regular, + BoldFeatures = {RawFeature={embolden=3}}, + BoldItalicFont = *-Regular, + BoldItalicFeatures={FakeSlant=0.2,RawFeature={embolden=3}}, Extension = .otf, ] \fi @@ -174,106 +195,125 @@ \else \setmainfont{Libertinus Serif}[ - Numbers = {\libertinus@figurealign,\libertinus@figurestyle}, + RawFeature = {\libertinus@figurealign,\libertinus@figurestyle}, Scale = \libertinusRM@scale , % UprightFont = * Regular, % ItalicFont = * Ialic, % BoldFont = * Bold, % \libertinus@boldstyle, % BoldItalicFont = * Bold Italic, %-\libertinus@boldstyle italic, - SmallCapsFeatures={Letters=SmallCaps}, + SmallCapsFont = * Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, % Extension = .otf ] \newfontfamily\LibertinusSerif{Libertinus Serif}[ - Numbers = {\libertinus@figurealign,\libertinus@figurestyle}, + RawFeature = {\libertinus@figurealign,\libertinus@figurestyle}, Scale = \libertinusRM@scale , -% UprightFont = *-regular, -% ItalicFont = *-italic, +% UprightFont = *-Regular, +% ItalicFont = *-Italic, % BoldFont = *-\libertinus@boldstyle, % BoldItalicFont = *-\libertinus@boldstyle italic, - SmallCapsFeatures={Letters=SmallCaps}, + SmallCapsFont = * Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, % Extension = .otf ] \newfontfamily\LibertnusSerifSB{Libertinus Serif}[ - Numbers = {\libertinus@figurealign,\libertinus@figurestyle}, + RawFeature = {\libertinus@figurealign,\libertinus@figurestyle}, Scale = \libertinusRM@scale , -% UprightFont = *-regular, -% ItalicFont = *-italic, +% UprightFont = *-Regular, +% ItalicFont = *-Italic, BoldFont = * Semibold, BoldItalicFont = * Semibold Italic, - SmallCapsFeatures={Letters=SmallCaps}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, % Extension = .otf ] \newfontfamily\LibertinusSerifOsF{Libertinus Serif}[ - Numbers = {OldStyle,Proportional}, + RawFeature = {OldStyle,Proportional}, Scale = \libertinusRM@scale , -% UprightFont = *-regular, -% ItalicFont = *-italic, +% UprightFont = *-Regular, +% ItalicFont = *-Italic, % BoldFont = *-\libertinus@boldstyle, % BoldItalicFont = *-\libertinus@boldstyle italic, - SmallCapsFeatures={Letters=SmallCaps}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, % Extension = .otf ] \newfontfamily\LibertinusSerifTLF{Libertinus Serif}[ - Numbers = {Lining,Monospaced}, + RawFeature = {Lining,Monospaced}, Scale = \libertinusRM@scale , -% UprightFont = *-regular, -% ItalicFont = *-italic, +% UprightFont = *-Regular, +% ItalicFont = *-Italic, % BoldFont = *-\libertinus@boldstyle, % BoldItalicFont = *-\libertinus@boldstyle italic, - SmallCapsFeatures={Letters=SmallCaps}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, % Extension = .otf ] \setsansfont{Libertinus Sans}[ - Numbers = {\libertinus@figurealign, \libertinus@figurestyle} , + RawFeature = {\libertinus@figurealign, \libertinus@figurestyle} , Scale = \libertinusSF@scale , -% UprightFont = * Regular, -% ItalicFont = * Italic, -% BoldFont = * Bold, -% BoldItalicFont = * Bold Italic, - SmallCapsFeatures={Letters=SmallCaps}, -% Extension = .otf + UprightFont = * Regular, + ItalicFont = * Italic, + BoldFont = * Bold, + BoldItalicFont = * Italic, + BoldItalicFeatures = {RawFeature={embolden=3}}, + SmallCapsFont = * Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, ] \newfontfamily\LibertinusSansOsF{Libertinus Sans} [ - Numbers = {OldStyle,Proportional} , + RawFeature = {OldStyle,Proportional} , Scale = \libertinusSF@scale , -% UprightFont = *-regular, -% ItalicFont = *-italic, -% BoldFont = *-bold, -% BoldItalicFont = *-bolditalic, - SmallCapsFeatures={Letters=SmallCaps}, + UprightFont = * Regular, + ItalicFont = * Italic, + BoldFont = * Bold, + BoldItalicFont = * Italic, + BoldItalicFeatures = {RawFeature={embolden=3}}, + SmallCapsFont = * Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, % Extension = .otf ] \newfontfamily\LibertinusSansTLF{Libertinus Sans} [ - Numbers = {Lining, Monospaced} , + RawFeature = {Lining, Monospaced} , Scale = \libertinusSF@scale , -% UprightFont = *-regular, -% ItalicFont = *-italic, -% BoldFont = *-bold, -% BoldItalicFont = *-bolditalic, - SmallCapsFeatures={Letters=SmallCaps}, + UprightFont = * Regular, + ItalicFont = * Italic, + BoldFont = * Bold, + BoldItalicFont = * Italic, + BoldItalicFeatures = {RawFeature={embolden=3}}, + SmallCapsFont = *-Regular, + SmallCapsFeatures={RawFeature=+smcp}, +% SmallCapsFeatures={Letters=SmallCaps}, % Extension = .otf ] \iflibertinus@mono \setmonofont{Libertinus Mono}[ -% Numbers = {\libertinus@figurealign, \libertinus@figurestyle}, +% RawFeature = {\libertinus@figurealign, \libertinus@figurestyle}, Scale = \libertinusTT@scale, FakeStretch = 0.8, -% UprightFont = * Regular, -% ItalicFont = * Italic, -% BoldFont = * Bold, -% BoldItalicFont = * Bold Italic, -% AutoFakeBold = 1.5, -% Extension = .otf, + UprightFont = * Regular, + ItalicFont = * Regular, + ItalicFeatures = {FakeSlant=0.2}, + BoldFont = * Regular, + BoldFeatures = {RawFeature={embolden=3}}, + BoldItalicFont = * Regular, + BoldItalicFeatures={FakeSlant=0.2,RawFeature={embolden=3}}, ] \fi @@ -284,16 +324,15 @@ \iflibertinus@nomath\else - \setmathfont{LibertinusMath-Regular.otf}[BoldFont=LibertinusMath-Bold.otf] -% \setmathfont{LibertinusMath-regular.otf} -% \setmathfont[version=bold]{libertinusmath-bold.otf} + \setmathfont{LibertinusMath-Regular.otf}%[BoldFont=LibertinusMath-Bold.otf] + \setmathfont[version=bold,RawFeature={embolden=3}]{LibertinusMath-Regular.otf} \fi \ifluatex - \font\LibertinusKeyboard{file:LibertinusKeyboard-Regular.otf} - \hyphenchar\LibertinusKeyboard=-1 + \newfontface\LibertinusKeyboard{LibertinusKeyboard-Regular.otf} +% \hyphenchar\LibertinusKeyboard=-1 \else - \font\LibertinusKeyboard"[LibertinusKeyboard-Regular.otf]" + \font\LibertinusKeyboard="[LibertinusKeyboard-Regular.otf]" \fi \newfontfamily\LibertinusDisplay{LibertinusSerifDisplay-Regular.otf} \newfontfamily\Libertinusinitials{LibertinusSerifInitials-Regular.otf} @@ -405,3 +444,5 @@ \fi % +\def\Wikipedia{{\fontspec{Libertinus Serif Regular}[RawFeature=+ss05]W}} +%\def\WikipediaSF{{\addfontfeature{RawFeature=+ss05}\fontspec{Libertinus Sans Regular}W}} -- cgit v1.2.3