diff options
author | Karl Berry <karl@freefriends.org> | 2019-09-20 21:31:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-09-20 21:31:42 +0000 |
commit | 2feab580b97f7a8ccb0672d2e65e6283ab561afd (patch) | |
tree | 8dd791016345b3b64ada3d27ba153d8273d01b99 /Master/texmf-dist/tex/latex/libertinus-otf | |
parent | 555037976536e552275b97d1a30474c1fa31a8a6 (diff) |
libertinus-otf (20sep19)
git-svn-id: svn://tug.org/texlive/trunk@52132 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/libertinus-otf')
-rw-r--r-- | Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty | 203 |
1 files changed, 122 insertions, 81 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 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}} |