diff options
author | Norbert Preining <norbert@preining.info> | 2023-09-22 03:02:00 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-09-22 03:02:00 +0000 |
commit | c07fb1640a1ae6e4fe9d8136c1d2b97cd64912a8 (patch) | |
tree | ff1e86c0e3c2e98ef24ca59fdab01c0690930ed8 /fonts/libertinus-otf/latex | |
parent | 0bb8ade32dcca6728c583e822cbff37268b73c66 (diff) |
CTAN sync 202309220301
Diffstat (limited to 'fonts/libertinus-otf/latex')
-rw-r--r-- | fonts/libertinus-otf/latex/libertinus-otf.sty | 56 |
1 files changed, 43 insertions, 13 deletions
diff --git a/fonts/libertinus-otf/latex/libertinus-otf.sty b/fonts/libertinus-otf/latex/libertinus-otf.sty index f25ca02a91..2801f5dd91 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 722 2023-05-17 16:52:17Z herbert $ +%% $Id: libertinus-otf.sty 765 2023-09-21 08:51:52Z 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 2023 Herbert Voss hvoss@tug.org % \ProvidesPackage{libertinus-otf}[% - 2023/05/16 v. 0.31 (Herbert Voss) Supports libertinus fonts for lualatex and xelatex.] + 2023/09/21 v. 0.32 (Herbert Voss) Supports libertinus fonts for lualatex and xelatex.] \RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} %\RequirePackage[no-math]{fontspec} @@ -19,12 +19,26 @@ name = "hv-kern", type = "kern", data = { - ["T"] = { ["i"] = -80 }, + ["T"] = { ["i"] = -80 }, + ["f"] = { ["five.fitted"] = 50 }, + ["f_f"] = { ["five.fitted"] = 50 }, }, } } \fi +\newcommand\IgnoreWhiteSpace{% + \catcode`\~=10\relax + \catcode`\ = 9\relax + \catcode`\^^M = 9\relax +} +\newcommand\ObeyWhiteSpace{% + \catcode`\~=13\relax + \catcode`\ =10\relax + \catcode`\^^M=5\relax +} + + \newif\iflibertinus@mono \libertinus@monotrue \newif\iflibertinus@nomath \libertinus@nomathfalse \newif\iflibertinus@lining \libertinus@liningtrue @@ -71,7 +85,10 @@ \DeclareOptionX{StretchTT}{\renewcommand*{\libertinusTT@stretch}{#1}} \def\libertinus@defaultfeatures{RawFeature={+hv-kern}} +\IgnoreWhiteSpace \DeclareOptionX{defaultfeatures}{\edef\libertinus@defaultfeatures{\libertinus@defaultfeatures,#1}} +\ObeyWhiteSpace + \DeclareOptionX*{\PassOptionsToPackage{\CurrentOption}{fontspec}} \ProcessOptionsX\relax @@ -160,6 +177,7 @@ \newunicodechar{𝜔}{\mitomega} \fi\fi +\PassOptionsToPackage{silent}{fontspec} \iflibertinus@nomath \RequirePackage{fontspec} \else @@ -360,16 +378,26 @@ RawFeature={embolden=3}]{LibertinusMath-Regular.otf} \fi +\newif\iflibertinus@biolinum \libertinus@biolinumfalse +\IfFileExists{libertinus.sty}% includes LinBiolinum_K.otf + {\ifluatex + \newfontface\BiolinumKeyboard{LinBiolinum_K.otf}[RawFeature=+liga] + \else + \font\BiolinumKeyboard="[LinBiolinum_K.otf]" + \fi + \global\libertinus@biolinumtrue} + {\typeout{*************************************^^J% + * Install package libertinus *^^J% + * for font LinBiolinum_K.otf *^^J% + *************************************}% + } \ifluatex \newfontface\LibertinusKeyboard{LibertinusKeyboard-Regular.otf}[RawFeature=+liga] - \newfontface\BiolinumKeyboard{LinBiolinum_K.otf}[RawFeature=+liga] % \hyphenchar\LibertinusKeyboard=-1 \else \font\LibertinusKeyboard="[LibertinusKeyboard-Regular.otf]" - \font\BiolinumKeyboard="[LinBiolinum_K.otf]" \fi \newfontfamily\LibertinusDisplay{LibertinusSerifDisplay-Regular.otf} -\newfontfamily\Libertinusinitials{LibertinusSerifInitials-Regular.otf} \newfontfamily\LibertinusInitials{LibertinusSerifInitials-Regular.otf} \def\sufigures{\addfontfeatures{VerticalPosition=Superior}} @@ -377,13 +405,13 @@ \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}} +\iflibertinus@biolinum + \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}} @@ -471,6 +499,8 @@ % % Maus % +\fi % end biolinum keyboard + \iffalse \DeclareRobustCommand*\LMouseEmpty{\biolinumKeyGlyph{"E130}} \DeclareRobustCommand*\LMouseN{\biolinumKeyGlyph{"E131}} |