summaryrefslogtreecommitdiff
path: root/fonts/kpfonts-otf/tex/kpfonts-otf.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-05-23 03:00:39 +0000
committerNorbert Preining <norbert@preining.info>2021-05-23 03:00:39 +0000
commitf1261b349e875b842745b63258c3e338cb1fe3bf (patch)
treeb5d402b3e80818cde2c079a42249f3dcb9732247 /fonts/kpfonts-otf/tex/kpfonts-otf.sty
parent58aa1ac09b1d9e4769d0a0661cf12e2b2db41b14 (diff)
CTAN sync 202105230300
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 0630b74ed2..b182d5f199 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.35}
-\def\filedate{2021-03-14}
+\def\fileversion{0.36}
+\def\filedate{2021-05-21}
\ProvidesPackage{kpfonts-otf}[\filedate\space\fileversion]
% Ensure luatex or xetex engine
@@ -179,6 +179,12 @@
\fi
% Loading Math fonts...
+\newcommand*{\KP@mathcal@Warning}{%
+ \PackageWarning{kpfonts-otf}{Option mathcal is no longer needed:\MessageBreak
+ just use \protect\mathcal{} for "calligraphic" \MessageBreak
+ and \protect\mathscr{} for "script" capitals;\MessageBreak reported
+ }%
+}
\ifkp@math
\ifkp@tight
\thinmuskip=2mu
@@ -187,7 +193,7 @@
\fi
\ifkp@lightmath
\ifkp@calasscr
- \Store@KP@MOption{RawFeature}{+ss01}
+ \KP@mathcal@Warning
\fi
\ifkp@sfmathbb
\Store@KP@MOption{RawFeature}{+ss02}
@@ -208,9 +214,10 @@
\Store@KP@MOption{partial}{upright}
\fi
\expandafter\setmathfont\expandafter[\the\KpMtoks]{KpMath-Light.otf}
+ \setmathfont[range={cal,bfcal},RawFeature=+ss01]{KpMath-Light.otf}
\else
\ifkp@calasscr
- \Store@KP@MOption{RawFeature}{+ss01}
+ \KP@mathcal@Warning
\fi
\ifkp@sfmathbb
\Store@KP@MOption{RawFeature}{+ss02}
@@ -231,6 +238,7 @@
\Store@KP@MOption{partial}{upright}
\fi
\expandafter\setmathfont\expandafter[\the\KpMtoks]{KpMath-Regular.otf}
+ \setmathfont[range={cal,bfcal},RawFeature=+ss01]{KpMath-Regular.otf}
\fi
\fi