From bb34b7bd740778cf80d79042f1dcaa867fbf782d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 29 Sep 2021 20:07:51 +0000 Subject: kpfonts-otf (29sep21) git-svn-id: svn://tug.org/texlive/trunk@60653 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/kpfonts-otf/kpfonts-otf.sty | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/kpfonts-otf/kpfonts-otf.sty b/Master/texmf-dist/tex/latex/kpfonts-otf/kpfonts-otf.sty index 434ba2bd632..62520bc54d7 100644 --- a/Master/texmf-dist/tex/latex/kpfonts-otf/kpfonts-otf.sty +++ b/Master/texmf-dist/tex/latex/kpfonts-otf/kpfonts-otf.sty @@ -1,6 +1,6 @@ \NeedsTeXFormat{LaTeX2e}[2019-01-01] -\def\fileversion{0.38} -\def\filedate{2021-09-12} +\def\fileversion{0.39} +\def\filedate{2021-09-28} \ProvidesPackage{kpfonts-otf}[\filedate\space\fileversion] % Ensure luatex or xetex engine @@ -21,6 +21,7 @@ \newif\ifkp@osn \newif\ifkp@os \newif\ifkp@vos +\newif\ifkp@longs \newif\ifkp@Qtail % \newif\ifkp@lightmath @@ -49,7 +50,9 @@ \DeclareOption{lighttext} {\kp@lighttexttrue} \DeclareOption{oldstylenums} {\kp@osntrue} \DeclareOption{oldstyle} {\kp@ostrue\kp@osntrue\kp@Qtailtrue} -\DeclareOption{veryoldstyle} {\kp@vostrue\kp@osntrue\kp@Qtailtrue} +\DeclareOption{longs} {\kp@longstrue} +\DeclareOption{veryoldstyle} {\kp@vostrue\kp@osntrue\kp@Qtailtrue + \ifluatex\kp@longstrue\fi} \DeclareOption{largesmallcaps} {\kp@largesmallcapstrue} \DeclareOption{altfligs} {\kp@altfligstrue} \DeclareOption{germandbls} {\kp@germandblstrue} @@ -115,6 +118,9 @@ \fi \defaultfontfeatures+[KpRoman,KpLight,\sffamily]{% Style=Historic,Ligatures=Historic,Contextuals=Alternate} + \fi + %% No Long s before spaces with luatex + \ifkp@longs \ifluatex % This function adds character U+200B (zero width space) when an "s" % is followed by a TeX space (glue or penalty) so that it is not turned @@ -162,7 +168,9 @@ "add_end_of_word_boundary"); } } - \fi + \else + \PackageWarning{kpfonts-otf}% + {Option "longs" skipped (luatex only), reported} \fi % Smallcaps \ifkp@largesmallcaps -- cgit v1.2.3