summaryrefslogtreecommitdiff
path: root/fonts/kpfonts-otf/tex/kpfonts-otf.sty
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/kpfonts-otf/tex/kpfonts-otf.sty')
-rw-r--r--fonts/kpfonts-otf/tex/kpfonts-otf.sty16
1 files changed, 12 insertions, 4 deletions
diff --git a/fonts/kpfonts-otf/tex/kpfonts-otf.sty b/fonts/kpfonts-otf/tex/kpfonts-otf.sty
index 434ba2bd63..62520bc54d 100644
--- a/fonts/kpfonts-otf/tex/kpfonts-otf.sty
+++ b/fonts/kpfonts-otf/tex/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