summaryrefslogtreecommitdiff
path: root/fonts/kpfonts-otf/tex/kpfonts-otf.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-01-31 03:01:37 +0000
committerNorbert Preining <norbert@preining.info>2021-01-31 03:01:37 +0000
commit8eab566745f1c61319c17e6a1aeea0f18bcfc34c (patch)
tree4c133e218862ad752d40321a84539b5814312721 /fonts/kpfonts-otf/tex/kpfonts-otf.sty
parent431a21790bcbf7d842f7a3d5e6e3eaef4ae823af (diff)
CTAN sync 202101310301
Diffstat (limited to 'fonts/kpfonts-otf/tex/kpfonts-otf.sty')
-rw-r--r--fonts/kpfonts-otf/tex/kpfonts-otf.sty24
1 files changed, 18 insertions, 6 deletions
diff --git a/fonts/kpfonts-otf/tex/kpfonts-otf.sty b/fonts/kpfonts-otf/tex/kpfonts-otf.sty
index 74e8ef19f2..1975e7c660 100644
--- a/fonts/kpfonts-otf/tex/kpfonts-otf.sty
+++ b/fonts/kpfonts-otf/tex/kpfonts-otf.sty
@@ -1,10 +1,10 @@
-\NeedsTeXFormat{LaTeX2e}[2019/01/01]
-\def\fileversion{0.32}
-\def\filedate{2020/11/18}
+\NeedsTeXFormat{LaTeX2e}[2019-01-01]
+\def\fileversion{0.34}
+\def\filedate{2021-01-30}
\ProvidesPackage{kpfonts-otf}[\filedate\space\fileversion]
% Ensure luatex or xetex engine
-\RequirePackage{iftex}[2019/10/24]
+\RequirePackage{iftex}[2019-10-24]
\RequireTUTeX
%
\newif\ifkp@math \kp@mathtrue
@@ -14,6 +14,8 @@
%
\newif\ifkp@lighttext
\newif\ifkp@largesmallcaps
+\newif\ifkp@altfligs
+\newif\ifkp@germandbls
\newif\ifkp@osn
\newif\ifkp@os
\newif\ifkp@vos
@@ -44,6 +46,8 @@
\DeclareOption{oldstyle} {\kp@ostrue\kp@osntrue\kp@Qtailtrue}
\DeclareOption{veryoldstyle} {\kp@vostrue\kp@osntrue\kp@Qtailtrue}
\DeclareOption{largesmallcaps} {\kp@largesmallcapstrue}
+\DeclareOption{altfligs} {\kp@altfligstrue}
+\DeclareOption{germandbls} {\kp@germandblstrue}
% Math options
\DeclareOption{lightmath} {\kp@lightmathtrue}
\DeclareOption{bbsans} {\kp@sfmathbbtrue}
@@ -132,8 +136,8 @@
% Loading Text fonts...
\ifkp@text
\RequirePackage{fontspec}[2019/01/01]
- % This needed with LuaTeX to typeset some composed chars like
- % āēīōū ẽ ĕ ċṅṁ etc. not ready-made in the KPfonts…
+ % This needed with LuaTeX to typeset composed chars not ready-made
+ % in the KPfonts (f.i. ċṅṁ plus āēīōūẽĕ in sans-serif).
\ifluahbtex\defaultfontfeatures{Renderer=HarfBuzz}\fi
% TS1 accent in Private Area
\DeclareUnicodeAccent{\newtie}{TU}{"E9F0}
@@ -168,6 +172,14 @@
\else
\KP@addto\KP@options{SmallCapsFeatures = {Letters=PetiteCaps}}
\fi
+ % Altfligs
+ \ifkp@altfligs
+ \KP@addto\KP@options{StylisticSet=1}
+ \fi
+ % Germandbls
+ \ifkp@germandbls
+ \KP@addto\KP@options{StylisticSet=2}
+ \fi
% Text Serif fonts:
\ifkp@lighttext
\setmainfont{KpLight}[\KP@options]