summaryrefslogtreecommitdiff
path: root/fonts/libertinus-otf/latex/libertinus-otf.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-21 03:01:05 +0000
committerNorbert Preining <norbert@preining.info>2019-09-21 03:01:05 +0000
commit31d764f773a47d4d8cfa2cd2c0c3a4d5a7dff3e6 (patch)
tree1d16ce4f7b63880c7e010b96574275f770d5fce5 /fonts/libertinus-otf/latex/libertinus-otf.sty
parent4b0f677aea00124171602de9498d50ac10d71eb3 (diff)
CTAN sync 201909210301
Diffstat (limited to 'fonts/libertinus-otf/latex/libertinus-otf.sty')
-rw-r--r--fonts/libertinus-otf/latex/libertinus-otf.sty203
1 files changed, 122 insertions, 81 deletions
diff --git a/fonts/libertinus-otf/latex/libertinus-otf.sty b/fonts/libertinus-otf/latex/libertinus-otf.sty
index 973a237f7b..ea18894398 100644
--- a/fonts/libertinus-otf/latex/libertinus-otf.sty
+++ b/fonts/libertinus-otf/latex/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}}