summaryrefslogtreecommitdiff
path: root/fonts/libertinus-otf/latex/libertinus-otf.sty
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/libertinus-otf/latex/libertinus-otf.sty')
-rw-r--r--fonts/libertinus-otf/latex/libertinus-otf.sty18
1 files changed, 11 insertions, 7 deletions
diff --git a/fonts/libertinus-otf/latex/libertinus-otf.sty b/fonts/libertinus-otf/latex/libertinus-otf.sty
index f0ffebc960..85e4d91649 100644
--- a/fonts/libertinus-otf/latex/libertinus-otf.sty
+++ b/fonts/libertinus-otf/latex/libertinus-otf.sty
@@ -1,4 +1,4 @@
-%% $Id: libertinus-otf.sty 1146 2020-02-22 15:47:27Z herbert $
+%% $Id: libertinus-otf.sty 1166 2020-04-25 17:58:36Z herbert $
%%
%% This file is distributed under the terms of the LaTeX Project Public
%% License from CTAN archives in directory macros/latex/base/lppl.txt.
@@ -8,7 +8,7 @@
% Copyright 2020 Herbert Voss hvoss@tug.org
%
\ProvidesPackage{libertinus-otf}[%
- 2020/02/22 v. 0.24 (Herbert Voss) Supports libertinus fonts for lualatex and xelatex.]
+ 2020/04/25 v. 0.25 (Herbert Voss) Supports libertinus fonts for lualatex and xelatex.]
\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
%\RequirePackage[no-math]{fontspec}
@@ -415,9 +415,6 @@
\fi
%------------------------ symbolic names stop -------------------------
-\def\sufigures{\addfontfeatures{VerticalPosition=Superior}}
-\DeclareTextFontCommand{\textsu}{\sufigures}
-
\iflibertinus@nomath\else
\typeout{*************************************^^J%
@@ -428,7 +425,7 @@
\fi
\ifluatex
- \newfontface\LibertinusKeyboard{LibertinusKeyboard-Regular.otf}
+ \newfontface\LibertinusKeyboard{LibertinusKeyboard-Regular.otf}[RawFeature=+liga]
% \hyphenchar\LibertinusKeyboard=-1
\else
\font\LibertinusKeyboard="[LibertinusKeyboard-Regular.otf]"
@@ -437,12 +434,18 @@
\newfontfamily\Libertinusinitials{LibertinusSerifInitials-Regular.otf}
\newfontfamily\LibertinusInitials{LibertinusSerifInitials-Regular.otf}
+\def\sufigures{\addfontfeatures{VerticalPosition=Superior}}
+\DeclareTextFontCommand{\textsup}{\sufigures}
+\DeclareTextFontCommand{\textsbf}{\LibertinusSerifSB\bfseries}% semibold
+\DeclareTextFontCommand{\textinit}{\LibertinusInitials}% Initials
+
\def\biolinumKeyGlyph#1{{\LibertinusKeyboard\symbol{#1}}}
\def\BiolinumKeyGlyph#1{{\LibertinusKeyboard#1}}
\DeclareRobustCommand*\LKey[1]{\BiolinumKeyGlyph{#1}}
\DeclareRobustCommand*\LKeyStrg{\BiolinumKeyGlyph{Strg}}
\DeclareRobustCommand*\LKeyAlt{\BiolinumKeyGlyph{Alt}}
+\DeclareRobustCommand*\LKeyAltApple{\biolinumKeyGlyph{"2325}}
\DeclareRobustCommand*\LKeyAltGr{\BiolinumKeyGlyph{AltGr}}
\DeclareRobustCommand*\LKeyShift{\BiolinumKeyGlyph{Shift}}
\DeclareRobustCommand*\LKeyTab{\BiolinumKeyGlyph{Tab}}
@@ -501,6 +504,7 @@
\DeclareRobustCommand*\LKeyStrgX[1]{\LKeyStrg+\LKey{#1}}
\DeclareRobustCommand*\LKeyShiftX[1]{\LKeyShift+\LKey{#1}}
\DeclareRobustCommand*\LKeyAltX[1]{\LKeyAlt+\LKey{#1}}
+\DeclareRobustCommand*\LKeyAltAppleX[1]{\LKeyAltApple+\LKey{#1}}
\DeclareRobustCommand*\LKeyAltGrX[1]{\LKeyAltGr+\LKey{#1}}
\DeclareRobustCommand*\LKeyShiftStrgX[1]{\LKeyShift+\LKeyStrg+\LKey{#1}}
\DeclareRobustCommand*\LKeyShiftAltX[1]{\LKeyShift+\LKeyAlt+\LKey{#1}}
@@ -602,5 +606,5 @@
\def\L@DLIG-{\addfontfeature{RawFeature=-dlig}}
\def\L@@DLIG#1{\addfontfeature{RawFeature=+dlig}\ifx#1+\else#1\fi}
-
+\endinput