From 76a51cd7f5731e827c8464e90b2a9cb6832103ab Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 21 Sep 2023 19:51:38 +0000 Subject: libertinus-otf (21sep23) git-svn-id: svn://tug.org/texlive/trunk@68333 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/fonts/libertinus-otf/Changes | 2 + .../fonts/libertinus-otf/libertinus-otf-doc.pdf | Bin 731587 -> 1351180 bytes .../fonts/libertinus-otf/libertinus-otf-doc.tex | 74 ++++++++++++++++++--- .../tex/latex/libertinus-otf/libertinus-otf.sty | 56 ++++++++++++---- 4 files changed, 109 insertions(+), 23 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/fonts/libertinus-otf/Changes b/Master/texmf-dist/doc/fonts/libertinus-otf/Changes index b9f573bb74f..ddb91aa0b58 100644 --- a/Master/texmf-dist/doc/fonts/libertinus-otf/Changes +++ b/Master/texmf-dist/doc/fonts/libertinus-otf/Changes @@ -1,3 +1,5 @@ +0.32 2023-09-21 - added check for LinBiolinum_K.otf + - added glyph list 0.31 2023-05-15 - added optional argument greek and greekitalic, which define some greek characters for directly input of upright and italic greek letters - added optional argument uni, which is passed to unicode-math 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 d20dc1924c1..fa9a8f5cd8b 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 1012ae10a64..ae37526ee37 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 722 2023-05-17 16:52:17Z herbert $ +%% $Id: libertinus-otf-doc.tex 765 2023-09-21 08:51:52Z herbert $ \listfiles \documentclass[ngerman,spanish,polish,english,a4paper]{article} \usepackage{libertinus-otf} @@ -15,6 +15,8 @@ \usepackage{marginnote} \usepackage{xcolor} \usepackage{varioref,multido} +\usepackage{unicodefonttable} + \newcommand\Macro[1]{\texttt{\textbackslash#1}} \newcommand\textstyleVariable[1]{\texttt{#1}} \newcommand\textgerman[1]{\foreignlanguage{ngerman}{\texttt{#1}}} @@ -59,11 +61,12 @@ \begin{abstract} The font family Libertinus is derived from the Linux Libertine and enhanced with a -math font by Khaled Hosny and Caleb Maclennan. +math font by Khaled Hosny and Caleb Maclennan. \end{abstract} \vfill Thanks to:\\ +Pablo Gonzalés;\\ Khaled Hosny;\\ Caleb Maclennan;\\ Nelson Posse Lago;\\ @@ -272,9 +275,9 @@ as usual. RawFeature={embolden=3}]{LibertinusMath-Regular.otf} \fi -\newfontfamily\LibertinusKeyboard{libertinuskeyboard-regular.otf} -\newfontfamily\LibertinusDisplay{libertinusserifdisplay-regular.otf} -\newfontfamily\Libertinusinitials{libertinusserifinitials-regular.otf} +\newfontfamily\LibertinusKeyboard{LibertinusKeyboard-Regular.otf} +\newfontfamily\LibertinusDisplay{LibertinusSerifDisplay-Regular.otf} +\newfontfamily\LibertinusInitials{LibertinusSerifInitials-Regular.otf} \end{verbatim} @@ -1054,7 +1057,7 @@ a global change of capitals to small caps relative to the current group. % grfOptions={width=0.5\linewidth}, frame,compiler=lualatex, crop, - force=false, + force=true, runs=2,code,docType=latex, frame, % showFilename, @@ -1077,7 +1080,7 @@ ct, st \qquad \LHLIG+ ct, st \LHLIG- Th, tt, tz, ck, ch \qquad\LDLIG+ Th, tt, tz, ck, ch\LDLIG- -\sffamily\LLIGA+ % Default +\setmainfont{LibertinusSans-Regular.otf}\LLIGA+ % Default fb, ff, fh, ffh, fi, ffi, fj, ffj, fk, ffk, fl, ffl, ft, fft, ſh, ſl, ſs, ſſ, ſt \LLIGA- @@ -1433,10 +1436,13 @@ and \Lcs{textinit}\Largb{TEXT} for Initials (only uppercase characters). \begin{verbatim} \font\LibertinusKeyboard="file:LibertinusKeyboard-Regular.otf" \newfontfamily\LibertinusDisplay{libertinusdisplay-regular.otf} -\newfontfamily\Libertinusinitials{libertinusinitials-regular.otf} +\newfontfamily\LibertinusInitials{libertinusinitials-regular.otf} \end{verbatim} \subsection{Keyboard font} +This depends on an installed package \texttt{libertine} which provides +the font \verb|LinBiolinum_K.otf|. + \def\LibKey#1;{\shortstack{\texttt{\string#1}\\#1}\xspace} @@ -1602,7 +1608,7 @@ Taka Albo tace Usta pęk ucha. \subsection{Initial font} -\Libertinusinitials +\LibertinusInitials 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} @@ -2328,8 +2334,55 @@ A̍a̎̎ … \clearpage -\newgeometry{margin=1cm,bmargin=2cm} +\newgeometry{%margin=1cm,bmargin=2cm, + tmargin=1cm,bmargin=1cm,includeheadfoot} + +\section{The Glyphs} +\subsection{Default Serif style} + +\defaultfontfeatures{Ligatures=TeXOff} + +Command: \Lcs{rmfamily} + +\displayfonttable{LibertinusSerif-Regular.otf}%[Scale=0.95] + + +\subsection{Default Sans style} +Command: \Lcs{sffamily} + + +\displayfonttable{LibertinusSans-Regular.otf}%[Scale=0.95] + +\subsection{Default Mono style} + +Command: \Lcs{ttfamily} +\displayfonttable{LibertinusMono-Regular.otf}%[Scale=0.95] + +\subsection{Default Display style} + +Command: \Lcs{LibertinusDisplay} +\displayfonttable{LibertinusSerifDisplay-Regular.otf}%[Scale=0.95] + + +\subsection{Default Initials style} + +Command: \Lcs{LibertinusInitials} +\displayfonttable{LibertinusSerifInitials-Regular.otf}%[Scale=0.95] + +\subsection{Default Math style} + +%Command: \Lcs{LibertinusInitial} +\displayfonttable{LibertinusMath-Regular.otf}%[Scale=0.95] + +\subsection{Default Keyboard style} + +Command: \Lcs{LibertinusKeyboard} +\displayfonttable{LibertinusKeyboard-Regular.otf}%[Scale=0.95] + + + +\iffalse \section{The font list of Libertinus Serif} \rmfamily @@ -2358,6 +2411,7 @@ A̍a̎̎ … \end{luacode*} \end{multicols} +\fi \printindex 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 f25ca02a91a..2801f5dd91a 100644 --- a/Master/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty +++ b/Master/texmf-dist/tex/latex/libertinus-otf/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}} -- cgit v1.2.3