summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-06-21 20:06:52 +0000
committerKarl Berry <karl@freefriends.org>2023-06-21 20:06:52 +0000
commitef92b2e8e8c0dc6e8fdbeaec53d03a2e6eb53361 (patch)
treed0354cba57bdbedd0dbf728c767d747d4da0a717
parent98f0adb10cb5a1498e7bba25b412e9b17aede493 (diff)
kpfonts-otf (21jun23)
git-svn-id: svn://tug.org/texlive/trunk@67428 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx9
-rw-r--r--Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.pdfbin222292 -> 222445 bytes
-rw-r--r--Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.ltx14
-rw-r--r--Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.pdfbin223741 -> 223930 bytes
-rw-r--r--Master/texmf-dist/doc/fonts/kpfonts-otf/README.md8
-rw-r--r--Master/texmf-dist/doc/fonts/kpfonts-otf/unimath-kpfonts.pdfbin1835409 -> 1835393 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Bold.otfbin203384 -> 258540 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Light.otfbin467916 -> 481188 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Regular.otfbin441588 -> 454868 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Sans.otfbin288272 -> 301668 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-SansBold.otfbin172348 -> 221096 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Semibold.otfbin204100 -> 281844 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Bold.otfbin57976 -> 71012 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-BoldItalic.otfbin65188 -> 78220 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Italic.otfbin66492 -> 79524 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Regular.otfbin59108 -> 72144 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Bold.otfbin133424 -> 146460 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-BoldItalic.otfbin143672 -> 156708 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Italic.otfbin134296 -> 147332 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Light.otfbin131272 -> 144304 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-LightItalic.otfbin133784 -> 146820 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Regular.otfbin131500 -> 144536 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Semibold.otfbin130572 -> 143608 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-SemiboldItalic.otfbin141308 -> 154344 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Bold.otfbin103944 -> 116980 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-BoldItalic.otfbin111944 -> 124976 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Italic.otfbin111904 -> 124936 bytes
-rw-r--r--Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Regular.otfbin102516 -> 115552 bytes
-rw-r--r--Master/texmf-dist/tex/latex/kpfonts-otf/kpfonts-otf.sty82
29 files changed, 78 insertions, 35 deletions
diff --git a/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx b/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx
index 742de7607aa..e3317bd31b1 100644
--- a/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx
+++ b/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx
@@ -40,7 +40,7 @@
\title{Kp-fonts: OpenType version}
\author{\href{mailto:daniel.flipo@free.fr}{Daniel \textsc{Flipo}}}
-\newcommand*{\version}{0.53}
+\newcommand*{\version}{0.54}
\begin{document}
\selectlanguage{british}
@@ -136,8 +136,8 @@ and a bunch of Kp-fonts specifics symbols.
Please compare \famvar{regular} (left) and \famvar{light} fonts (right):
\newcommand*{\test}{Normal or light? Just a matter of taste}
-\medskip
+\medskip
\begin{minipage}{.45\textwidth}\test. $E=mc^2$\end{minipage}\hfill
\begin{minipage}{.45\textwidth}\ltseries\test. \mathversion{light}$E=mc^2$
\end{minipage}
@@ -155,6 +155,7 @@ and a bunch of Kp-fonts specifics symbols.
\begin{minipage}{.45\textwidth}\sbseries\itshape\test\end{minipage}
\medskip
+\item[sans:] switches to \famvar{sans-serif} fonts for text and maths.
\item[nomath:] load neither \pkg{unicode-math} nor \family{KpMath} fonts;
useful for documents without maths, or to choose other maths fonts.
@@ -183,6 +184,8 @@ and a bunch of Kp-fonts specifics symbols.
|{\sbseries\itshape Foo}| or |\textsb{\textit{Foo}}| print
{\sbseries\itshape Foo}.
+\item[sfstext:] switches to \famvar{sans-serif} text fonts.
+
\item[oldstylenums:] provides lowercase digits as a default.
To get uppercase digits locally: |{\addfontfeature{Numbers=Lining} 123}|.
@@ -257,6 +260,8 @@ and a bunch of Kp-fonts specifics symbols.
\item[lightmath:] uses \famvar{light} maths fonts.
+\item[sfmath:] uses \famvar{sans-serif} maths fonts.
+
\item[bbsans:] command |\mathbb| prints Sans-Serif Blackboard Bold capitals
with Serif fonts too: compare
\mathversion{full}
diff --git a/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.pdf b/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.pdf
index 904a72ab256..e339565f329 100644
--- a/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.pdf
+++ b/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.ltx b/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.ltx
index f949104d9a4..909e52aaf78 100644
--- a/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.ltx
+++ b/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.ltx
@@ -39,7 +39,7 @@
\title{Kp-fonts version OpenType}
\author{\href{mailto:daniel.flipo@free.fr}{Daniel \textsc{Flipo}}}
-\newcommand*{\version}{0.53}
+\newcommand*{\version}{0.54}
\begin{document}
\maketitle
@@ -158,6 +158,9 @@ ainsi qu’un certain nombre de symboles et de commandes spécifiques à Kp-font
\medskip
+\item[sans :] pour utiliser la version \famvar{sans-serif} des polices texte
+ et math.
+
\item[nomath :] ne charge ni \pkg{unicode-math} ni les fontes \family{KpMath} ;
utile pour les documents sans maths ou pour faire appel à d’autres fontes
pour les maths.
@@ -189,6 +192,8 @@ Notez que ces options n'affectent que les polices de texte.
|{\sbseries\itshape Foo}| ou |\textsb{\textit{Foo}}| donne
{\sbseries\itshape Foo}.
+\item[sftext :] le texte est composé en utilisant les polices sans-serif.
+
\item[oldstylenums :] Les polices fournissent ici les nombres elzéviriens par
défaut.
@@ -268,14 +273,15 @@ Notez que ces options n'affectent que les polices de texte.
\item[lightmath :] les mathématiques sont composées avec les polices
« light ».
-\item[bbsans :] dans tous les cas, la commande |\mathbb| produit du
- sans-serif :
+\item[sfmath :] les mathématiques sont composées avec les polices sans-serif.
+
+\item[bbsans :] la commande |\mathbb| produit du sans-serif :
\mathversion{full}
$\mathbb{C}$, $\mathbb{K}$, $\mathbb{N}$, $\mathbb{Q}$, $\mathbb{R}$,
$\mathbb{Z}$, à comparer à
\mathversion{base}
$\mathbb{C}$, $\mathbb{K}$, $\mathbb{N}$, $\mathbb{Q}$, $\mathbb{R}$,
- $\mathbb{Z}$.
+ $\mathbb{Z}$ obtenus par défaut.
%\item[mathcal :] cette option modifie l’effet des commandes
% |\mathcal| et |\mathscr|, elles produisent toutes les deux
diff --git a/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.pdf b/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.pdf
index f6648abebbd..1b2cfa19a4e 100644
--- a/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.pdf
+++ b/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/fonts/kpfonts-otf/README.md b/Master/texmf-dist/doc/fonts/kpfonts-otf/README.md
index 2948034e0f7..35e2e744e28 100644
--- a/Master/texmf-dist/doc/fonts/kpfonts-otf/README.md
+++ b/Master/texmf-dist/doc/fonts/kpfonts-otf/README.md
@@ -212,7 +212,13 @@ Either version 1.3 or, at your option, any later version.
* v. 0.53:
- Text fonts: added missing substitutions 'sups' and 'sinf' for
the minus sign.
-
+
+* v. 0.54:
+ - Math Sans Serif fonts: \imath and \jmath corrected.
+ - Math Bold and Semibold fonts: missing glyphs added in range
+ U+1D400-U+1D7F5 (SE#688363).
+ - File kpfonts-otf.sty: new options 'sftext', 'sfmath', 'sans'.
+
---
Copyright 2020-2023 Daniel Flipo
E-mail: daniel (dot) flipo (at) free (dot) fr
diff --git a/Master/texmf-dist/doc/fonts/kpfonts-otf/unimath-kpfonts.pdf b/Master/texmf-dist/doc/fonts/kpfonts-otf/unimath-kpfonts.pdf
index fbc634bcc58..3bb9a270635 100644
--- a/Master/texmf-dist/doc/fonts/kpfonts-otf/unimath-kpfonts.pdf
+++ b/Master/texmf-dist/doc/fonts/kpfonts-otf/unimath-kpfonts.pdf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Bold.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Bold.otf
index 14f0d8ff56a..9d8001120f7 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Bold.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Bold.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Light.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Light.otf
index f121fd7436e..830f789930e 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Light.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Light.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Regular.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Regular.otf
index 4925d53f382..8a6833c7825 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Regular.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Regular.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Sans.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Sans.otf
index d32a217e84f..e84543fcb18 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Sans.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Sans.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-SansBold.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-SansBold.otf
index 595a7da6e12..7ca7c34e8fb 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-SansBold.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-SansBold.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Semibold.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Semibold.otf
index 09c14d2d5b6..4d995347f54 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Semibold.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Semibold.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Bold.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Bold.otf
index 9cd1ec45e82..78519493b34 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Bold.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Bold.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-BoldItalic.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-BoldItalic.otf
index 644392da3c4..908e5b7454e 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-BoldItalic.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-BoldItalic.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Italic.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Italic.otf
index 9571a0047c0..7b884fb43dc 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Italic.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Italic.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Regular.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Regular.otf
index 1f678f4f2ee..3e8843a6f26 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Regular.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Regular.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Bold.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Bold.otf
index f956bbd44e5..386be3f0bd4 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Bold.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Bold.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-BoldItalic.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-BoldItalic.otf
index 67e16167b66..c79dd2f35b4 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-BoldItalic.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-BoldItalic.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Italic.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Italic.otf
index c94fd20cbab..b095428108e 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Italic.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Italic.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Light.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Light.otf
index 68b32790e0a..e8ca3ebfeb9 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Light.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Light.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-LightItalic.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-LightItalic.otf
index 6d7a3546bf8..a18b403abbe 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-LightItalic.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-LightItalic.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Regular.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Regular.otf
index eb912788008..bda96f543eb 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Regular.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Regular.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Semibold.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Semibold.otf
index 57897273cc3..8cff5d264ca 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Semibold.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Semibold.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-SemiboldItalic.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-SemiboldItalic.otf
index 1561ff603c0..7658059ebf6 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-SemiboldItalic.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-SemiboldItalic.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Bold.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Bold.otf
index 31c42814e52..214cd0fd65a 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Bold.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Bold.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-BoldItalic.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-BoldItalic.otf
index 22b4bc6d77c..e8de6977065 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-BoldItalic.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-BoldItalic.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Italic.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Italic.otf
index 0b82dad6f9a..5b6696e753a 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Italic.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Italic.otf
Binary files differ
diff --git a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Regular.otf b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Regular.otf
index 84097791293..88cad6faaa9 100644
--- a/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Regular.otf
+++ b/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Regular.otf
Binary files differ
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 8ff8c69fc3f..7ea1af9cc12 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.53}
-\def\filedate{2023-05-27}
+\def\fileversion{0.54}
+\def\filedate{2023-06-21}
\ProvidesPackage{kpfonts-otf}[\filedate\space\fileversion]
% Ensure luatex or xetex engine
@@ -13,6 +13,8 @@
\newif\ifkp@tt \kp@tttrue
%
\newif\ifkp@lighttext
+\newif\ifkp@sftext
+\newif\ifkp@sans
\newif\ifkp@largesmallcaps
\newif\ifkp@altfligs
\newif\ifkp@eurosym
@@ -24,6 +26,7 @@
\newif\ifkp@Qtail
%
\newif\ifkp@lightmath
+\newif\ifkp@sfmath
\newif\ifkp@osnm
\newif\ifkp@narrowiints
\newif\ifkp@partialup
@@ -39,6 +42,7 @@
\DeclareOption{light} {\kp@lighttexttrue\kp@lightmathtrue}
\DeclareOption{nomath} {\kp@mathfalse\kp@symbolsfalse}
\DeclareOption{notext} {\kp@textfalse}
+\DeclareOption{sans} {\kp@sftexttrue\kp@sfmathtrue}
\DeclareOption{nosf} {\kp@sffalse}
\DeclareOption{nott} {\kp@ttfalse}
\DeclareOption{onlyrm} {\kp@ttfalse\kp@sffalse}
@@ -47,6 +51,7 @@
\kp@osnmtrue}
% Text options
\DeclareOption{lighttext} {\kp@lighttexttrue}
+\DeclareOption{sftext} {\kp@sftexttrue}
\DeclareOption{oldstylenums} {\kp@osntrue}
\DeclareOption{oldstyle} {\kp@ostrue\kp@osntrue\kp@Qtailtrue}
\DeclareOption{veryoldstyle} {\kp@vostrue\kp@osntrue\kp@Qtailtrue}
@@ -57,6 +62,7 @@
\DeclareOption{harfbuzz} {\kp@harfbuzztrue}
% Math options
\DeclareOption{lightmath} {\kp@lightmathtrue}
+\DeclareOption{sfmath} {\kp@sfmathtrue}
\DeclareOption{bbsans} {\kp@sfmathbbtrue}
\DeclareOption{mathcal} {\kp@calasscrtrue}
\DeclareOption{narrowiints} {\kp@narrowiintstrue}
@@ -146,22 +152,26 @@
\defaultfontfeatures+[KpRoman,KpLight,\sffamily]{StylisticSet=3}
\fi
% Loading Text Serif fonts:
- \ifkp@lighttext
- \setmainfont{KpLight}
- \renewfontfamily\KpLight{KpLight}
- \renewfontfamily\KpRoman{KpRoman}
- \newcommand*{\sbseries}{\KpRoman}
- \newcommand*{\ebseries}{\KpRoman\bfseries}
- \DeclareTextFontCommand{\textsb}{\sbseries}
- \DeclareTextFontCommand{\texteb}{\ebseries}
+ \ifkp@sftext
+ \setmainfont{KpSans}
\else
- \setmainfont{KpRoman}
- \renewfontfamily\KpRoman{KpRoman}
- \renewfontfamily\KpLight{KpLight}
- \newcommand*{\sbseries}{\KpLight\bfseries}
- \newcommand*{\ltseries}{\KpLight}
- \DeclareTextFontCommand{\textsb}{\sbseries}
- \DeclareTextFontCommand{\textlt}{\ltseries}
+ \ifkp@lighttext
+ \setmainfont{KpLight}
+ \renewfontfamily\KpLight{KpLight}
+ \renewfontfamily\KpRoman{KpRoman}
+ \newcommand*{\sbseries}{\KpRoman}
+ \newcommand*{\ebseries}{\KpRoman\bfseries}
+ \DeclareTextFontCommand{\textsb}{\sbseries}
+ \DeclareTextFontCommand{\texteb}{\ebseries}
+ \else
+ \setmainfont{KpRoman}
+ \renewfontfamily\KpRoman{KpRoman}
+ \renewfontfamily\KpLight{KpLight}
+ \newcommand*{\sbseries}{\KpLight\bfseries}
+ \newcommand*{\ltseries}{\KpLight}
+ \DeclareTextFontCommand{\textsb}{\sbseries}
+ \DeclareTextFontCommand{\textlt}{\ltseries}
+ \fi
\fi
% Loading Text Sans Serif fonts:
\ifkp@sf
@@ -220,24 +230,38 @@
\ifkp@partialup
\Store@KP@MOption{partial}{upright}
\fi
- \ifkp@lightmath
+ \ifkp@sfmath
+ \Store@KP@MOption{BoldFont}{KpMath-SansBold.otf}
% Following Joseph Wright in https://tex.stackexchange.com/questions/451
\begingroup
\edef\temp{%
\endgroup
- \noexpand\setmathfont{KpMath-Light.otf}%
+ \noexpand\setmathfont{KpMath-Sans.otf}%
[\unexpanded\expandafter{\the\KpMtoks}]%
}
- \temp
- \setmathfont{KpMath-Light.otf}[range={cal,bfcal},RawFeature=+ss01]
+ \temp
+ \setmathfont{KpMath-Sans.otf}[range={cal,bfcal},RawFeature=+ss01]
\else
- % Following Joseph Wright in https://tex.stackexchange.com/questions/451
- \begingroup
- \edef\temp{%
- \endgroup
- \noexpand\setmathfont{KpMath-Regular.otf}%
- [\unexpanded\expandafter{\the\KpMtoks}]%
- }
+ \ifkp@lightmath
+ \Store@KP@MOption{BoldFont}{KpMath-Semibold.otf}
+ % Following Joseph Wright in https://tex.stackexchange.com/questions/451
+ \begingroup
+ \edef\temp{%
+ \endgroup
+ \noexpand\setmathfont{KpMath-Light.otf}%
+ [\unexpanded\expandafter{\the\KpMtoks}]%
+ }
+ \temp
+ \setmathfont{KpMath-Light.otf}[range={cal,bfcal},RawFeature=+ss01]
+ \else
+ % Following Joseph Wright in https://tex.stackexchange.com/questions/451
+ \Store@KP@MOption{BoldFont}{KpMath-Bold.otf}
+ \begingroup
+ \edef\temp{%
+ \endgroup
+ \noexpand\setmathfont{KpMath-Regular.otf}%
+ [\unexpanded\expandafter{\the\KpMtoks}]%
+ }
\temp
\setmathfont{KpMath-Regular.otf}[range={cal,bfcal},RawFeature=+ss01]
\fi
@@ -254,6 +278,8 @@
\newopentypefeature{Style}{parallelslant}{ss07}
\AtBeginDocument{%
% Kpfonts specific math symbols
+ \Umathchardef\dotlessi = 0 0 "0131 \relax
+ \Umathchardef\dotlessj = 0 0 "0237 \relax
\Umathchardef\mitsanswp = 0 0 "E015 \relax
\Umathchardef\mitsansell = 0 0 "E019 \relax
\Umathchardef\varemptyset = 0 0 "E021 \relax