From f1261b349e875b842745b63258c3e338cb1fe3bf Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 23 May 2021 03:00:39 +0000 Subject: CTAN sync 202105230300 --- fonts/kpfonts-otf/tex/kpfonts-otf.sty | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'fonts/kpfonts-otf/tex/kpfonts-otf.sty') 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 -- cgit v1.2.3