diff options
author | Norbert Preining <norbert@preining.info> | 2024-05-03 03:01:15 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-05-03 03:01:15 +0000 |
commit | 5fc635e606281a4f66bbc31bfb827fee53a21f96 (patch) | |
tree | 9098d3cf064670ee534c4170ecdbdd90355d8932 /fonts | |
parent | 68c5442089b7c2e61ee14fc3efed490e291a244a (diff) |
CTAN sync 202405030301
Diffstat (limited to 'fonts')
29 files changed, 58 insertions, 10 deletions
diff --git a/fonts/kpfonts-otf/README.md b/fonts/kpfonts-otf/README.md index 33bdcfeffd..4dfb0b5905 100644 --- a/fonts/kpfonts-otf/README.md +++ b/fonts/kpfonts-otf/README.md @@ -244,6 +244,12 @@ Either version 1.3 or, at your option, any later version. * v. 0.62: - Math fonts: vertical delimiters redesigned (sizes and boldness). + +* v. 0.63: + Text fonts: + - Super/Sub-scripts added: punctuation, brackets, braces, dashes, etc. + - Option 'fakedscripts' added to kpfonts-otf.sty; it prevents loading + of package realscripts. --- Copyright 2020-2024 Daniel Flipo diff --git a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx index 61c7d7b118..aa6fa66e20 100644 --- a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx +++ b/fonts/kpfonts-otf/doc/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.62} +\newcommand*{\version}{0.63} \begin{document} \selectlanguage{british} @@ -117,7 +117,8 @@ For users of the original \pkg{kpfonts.sty} package, the easiest way to try the OpenType version is to load \pkg{kpfonts-otf.sty}:\\[.5\baselineskip] |\usepackage[ |\optit{options}| ]{kpfonts-otf}|\\[.5\baselineskip] -this loads \pkg{unicode-math}, \pkg{fontspec} and \pkg{realscripts}, and defines +this loads \pkg{unicode-math}, \pkg{fontspec} and usually \pkg{realscripts}% +\footnote{See option \opt{fakedscripts} below.}, and defines \family{KpRoman} (\family{Regular} or \family{Light} depending on options), \family{KpSans} and \family{KpMono} as Text fonts, \family{KpMath} (\family{Regular} or \family{Light} depending on options) as maths fonts. @@ -186,6 +187,19 @@ and a bunch of Kp-fonts specifics symbols. \item[sfstext:] switches to \famvar{sans-serif} text fonts. +\item[fakedscripts :] prevents \pkg{realscripts} to be loaded, super- + and sub-scripts will be produced by scaling (this is the way pdflatex works) + which gives access to all characters available in the font but produces too + tall and too thin glyphs. On the other hand \pkg{realscripts} gives access + to the super/sub-scripts available in the font (a reduced set made of + digits, lowercase latin letters, parentheses, etc. for the Kpfonts) which are + better looking. I would recommend to keep \pkg{realscripts} loaded and to + use the starred variants \verb+\textsuperscript*+, \verb+\textsubscript*+, + to produce faked super/sub-scripts when needed, coding + \verb+H\textsuperscript*{\#}+ to get H\textsuperscript*{\#} while + \verb+H\textsuperscript{\#}+ would output H\textsuperscript{\#} (\# missing + as superscript). + \item[oldstylenums:] provides lowercase digits as a default. To get uppercase digits locally: |{\addfontfeature{Numbers=Lining} 123}|. @@ -749,7 +763,7 @@ document’s preamble:\\ then, it is easy to switch from one version to another one with |\mathversion{|\optit{name}|}|. -\pagebreak[4] +%\pagebreak[4] Example\footnote{\mathversion{full}Option \opt{CharacterVariant=3} changes $\epsilon$ into $\varepsilon$.} : \begin{verbatim} @@ -761,7 +775,7 @@ $\epsilon$ into $\varepsilon$.} : \end{verbatim} Here is the same equation in three versions, normal, bold and Sans-Serif: -\mathversion{base} +\setmathfont{KpMath-Regular.otf}[Style=leqslant, CharacterVariant=3] \[ \mathbb{E}_i(N_i) = \sum_{n\ge1} P_i(N_i\ge n) = \frac{\epsilon_i}{1-\epsilon_i}<+\infty \] @@ -773,6 +787,10 @@ Here is the same equation in three versions, normal, bold and Sans-Serif: |\mathversion{sans}| \mathversion{sans} \[ \mathbb{E}_i(N_i) = \sum_{n\ge1} P_i(N_i\ge n) = \frac{\epsilon_i}{1-\epsilon_i}<+\infty \] + +To get bold formulas you do not need to define |\mathversion{bold}|, you can +just use the |\boldmath| command: +f.i. |{\boldmath $E=mc^2$}| prints {\boldmath $E=mc^2$}. \end{document} %%% Local Variables: diff --git a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.pdf b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.pdf Binary files differindex 7291675bb3..ce8e6b9aae 100644 --- a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.pdf +++ b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.pdf diff --git a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.ltx b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.ltx index 3f22836c98..8dfc5fd9d0 100644 --- a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.ltx +++ b/fonts/kpfonts-otf/doc/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.62} +\newcommand*{\version}{0.63} \begin{document} \maketitle @@ -115,7 +115,8 @@ Les utilisateurs de la version originale des Kp-fonts préfèreront probablement charger \pkg{kpfonts-otf.sty} comme ceci :\\[.5\baselineskip] |\usepackage[ |\optit{options}| ]{kpfonts-otf}|\\[.5\baselineskip] -ceci charge \pkg{unicode-math}, \pkg{fontspec} et \pkg{realscripts} et +ceci charge \pkg{unicode-math}, \pkg{fontspec} et normalement \pkg{realscripts}% +\footnote{Sauf option \opt{fakedscripts}, voir ci-dessous.} et définit \family{KpRoman} (\family{Regular} ou \family{Light} selon les options), \family{KpSans} et \family{KpMono} comme polices de texte et \family{KpMath} (\family{Regular} ou \family{Light} selon les options) comme police @@ -194,6 +195,21 @@ Notez que ces options n'affectent que les polices de texte. \item[sftext :] le texte est composé en utilisant les polices sans-serif. +\item[fakedscripts :] empêche le chargement de l’extension \pkg{realscripts} + qui donne accès aux vraies lettres supérieures et inférieures disponibles + dans la police (chiffres, lettres minuscules latines non accentuées, + parenthèses, etc. pour les Kpfonts) ; avec l’option \opt{fakedscripts} les + lettres supérieures et inférieures sont obtenues par simple réduction des + lettres de base correspondantes (comme le fait pdflatex), ce qui permet de + placer en exposant ou en indice n’importe quel glyphe présent dans la + police au prix d’une perte de qualité (résultat trop haut et trop maigre) + comparer M\up{me} à M\up*{me} ou M\up{lle} à M\up*{lle}. + Noter que la commande \cmd{up} de \pkg{babel-french} utilise les vraies + supérieures lorsque \pkg{realscripts} est chargé et que sa variante \cmd{up*} + permet d’accéder aux supérieures simulées en cas de besoin : + le caractère \# n’étant pas disponible en lettre supérieure \verb+H\up{\#}+ + produit H\up{\#} tandis que \verb+H\up*{\#}+ produit H\up*{\#}. + \item[oldstylenums :] Les polices fournissent ici les nombres elzéviriens par défaut. @@ -788,6 +804,7 @@ On définit dans le préambule les versions désirées, par exemple :\\ et ensuite on passe d’une version à l’autre grâce à la commande |\mathversion{|\optit{nom}|}|. +\pagebreak[4] Exemple\footnote{\mathversion{full}L’option \opt{CharacterVariant=3} remplace le $\epsilon$ par $\varepsilon$.} : \begin{verbatim} @@ -798,7 +815,7 @@ $\epsilon$ par $\varepsilon$.} : \end{verbatim} Voici la même équation en trois versions, normale, grasse et sans empattement : -\mathversion{base} +\setmathfont{KpMath-Regular.otf}[Style=leqslant, CharacterVariant=3] \[ \mathbb{E}_i(N_i) = \sum_{n\ge1} P_i(N_i\ge n) = \frac{\epsilon_i}{1-\epsilon_i}<+\infty \] @@ -810,6 +827,11 @@ Voici la même équation en trois versions, normale, grasse et sans empattement |\mathversion{sans}|\mathversion{sans} \[ \mathbb{E}_i(N_i) = \sum_{n\ge1} P_i(N_i\ge n) = \frac{\epsilon_i}{1-\epsilon_i}<+\infty \] + +Noter que la commande |\boldmath| peut également être utilisée sans avoir +à définir |\mathversion{bold}| : |{\boldmath $E=mc^2$}| produit +{\boldmath $E=mc^2$}. + \end{document} %%% Local Variables: diff --git a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.pdf b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.pdf Binary files differindex 00acb7cf7a..b8e3059a8a 100644 --- a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.pdf +++ b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.pdf diff --git a/fonts/kpfonts-otf/doc/unimath-kpfonts.pdf b/fonts/kpfonts-otf/doc/unimath-kpfonts.pdf Binary files differindex 4f4c4a8f61..af0768d922 100644 --- a/fonts/kpfonts-otf/doc/unimath-kpfonts.pdf +++ b/fonts/kpfonts-otf/doc/unimath-kpfonts.pdf diff --git a/fonts/kpfonts-otf/fonts/KpMath-Bold.otf b/fonts/kpfonts-otf/fonts/KpMath-Bold.otf Binary files differindex bf24059d7a..acd8321c4a 100644 --- a/fonts/kpfonts-otf/fonts/KpMath-Bold.otf +++ b/fonts/kpfonts-otf/fonts/KpMath-Bold.otf diff --git a/fonts/kpfonts-otf/fonts/KpMath-Light.otf b/fonts/kpfonts-otf/fonts/KpMath-Light.otf Binary files differindex 47e8a41a32..85dba5fec9 100644 --- a/fonts/kpfonts-otf/fonts/KpMath-Light.otf +++ b/fonts/kpfonts-otf/fonts/KpMath-Light.otf diff --git a/fonts/kpfonts-otf/fonts/KpMath-Regular.otf b/fonts/kpfonts-otf/fonts/KpMath-Regular.otf Binary files differindex 54a0d839de..7212a64664 100644 --- a/fonts/kpfonts-otf/fonts/KpMath-Regular.otf +++ b/fonts/kpfonts-otf/fonts/KpMath-Regular.otf diff --git a/fonts/kpfonts-otf/fonts/KpMath-Sans.otf b/fonts/kpfonts-otf/fonts/KpMath-Sans.otf Binary files differindex 2ba70c61fa..39be8cd5a2 100644 --- a/fonts/kpfonts-otf/fonts/KpMath-Sans.otf +++ b/fonts/kpfonts-otf/fonts/KpMath-Sans.otf diff --git a/fonts/kpfonts-otf/fonts/KpMath-SansBold.otf b/fonts/kpfonts-otf/fonts/KpMath-SansBold.otf Binary files differindex e618b5ec2c..55df05f861 100644 --- a/fonts/kpfonts-otf/fonts/KpMath-SansBold.otf +++ b/fonts/kpfonts-otf/fonts/KpMath-SansBold.otf diff --git a/fonts/kpfonts-otf/fonts/KpMath-Semibold.otf b/fonts/kpfonts-otf/fonts/KpMath-Semibold.otf Binary files differindex 953dfb8ebe..779a972cf2 100644 --- a/fonts/kpfonts-otf/fonts/KpMath-Semibold.otf +++ b/fonts/kpfonts-otf/fonts/KpMath-Semibold.otf diff --git a/fonts/kpfonts-otf/fonts/KpMono-Bold.otf b/fonts/kpfonts-otf/fonts/KpMono-Bold.otf Binary files differindex 407b1fae19..5fc59a64d1 100644 --- a/fonts/kpfonts-otf/fonts/KpMono-Bold.otf +++ b/fonts/kpfonts-otf/fonts/KpMono-Bold.otf diff --git a/fonts/kpfonts-otf/fonts/KpMono-BoldItalic.otf b/fonts/kpfonts-otf/fonts/KpMono-BoldItalic.otf Binary files differindex 274f44fcfb..6e14f1352a 100644 --- a/fonts/kpfonts-otf/fonts/KpMono-BoldItalic.otf +++ b/fonts/kpfonts-otf/fonts/KpMono-BoldItalic.otf diff --git a/fonts/kpfonts-otf/fonts/KpMono-Italic.otf b/fonts/kpfonts-otf/fonts/KpMono-Italic.otf Binary files differindex 67ef8dc125..a9639a001e 100644 --- a/fonts/kpfonts-otf/fonts/KpMono-Italic.otf +++ b/fonts/kpfonts-otf/fonts/KpMono-Italic.otf diff --git a/fonts/kpfonts-otf/fonts/KpMono-Regular.otf b/fonts/kpfonts-otf/fonts/KpMono-Regular.otf Binary files differindex 43c44a3e85..838e8b21e5 100644 --- a/fonts/kpfonts-otf/fonts/KpMono-Regular.otf +++ b/fonts/kpfonts-otf/fonts/KpMono-Regular.otf diff --git a/fonts/kpfonts-otf/fonts/KpRoman-Bold.otf b/fonts/kpfonts-otf/fonts/KpRoman-Bold.otf Binary files differindex 8bc04f5ffd..0bc1e65190 100644 --- a/fonts/kpfonts-otf/fonts/KpRoman-Bold.otf +++ b/fonts/kpfonts-otf/fonts/KpRoman-Bold.otf diff --git a/fonts/kpfonts-otf/fonts/KpRoman-BoldItalic.otf b/fonts/kpfonts-otf/fonts/KpRoman-BoldItalic.otf Binary files differindex d0cf425351..3ff2bd74c9 100644 --- a/fonts/kpfonts-otf/fonts/KpRoman-BoldItalic.otf +++ b/fonts/kpfonts-otf/fonts/KpRoman-BoldItalic.otf diff --git a/fonts/kpfonts-otf/fonts/KpRoman-Italic.otf b/fonts/kpfonts-otf/fonts/KpRoman-Italic.otf Binary files differindex d167607dee..7ee6ab2607 100644 --- a/fonts/kpfonts-otf/fonts/KpRoman-Italic.otf +++ b/fonts/kpfonts-otf/fonts/KpRoman-Italic.otf diff --git a/fonts/kpfonts-otf/fonts/KpRoman-Light.otf b/fonts/kpfonts-otf/fonts/KpRoman-Light.otf Binary files differindex ba07c4fe62..3c9e22411c 100644 --- a/fonts/kpfonts-otf/fonts/KpRoman-Light.otf +++ b/fonts/kpfonts-otf/fonts/KpRoman-Light.otf diff --git a/fonts/kpfonts-otf/fonts/KpRoman-LightItalic.otf b/fonts/kpfonts-otf/fonts/KpRoman-LightItalic.otf Binary files differindex 95fe228bea..f646339e09 100644 --- a/fonts/kpfonts-otf/fonts/KpRoman-LightItalic.otf +++ b/fonts/kpfonts-otf/fonts/KpRoman-LightItalic.otf diff --git a/fonts/kpfonts-otf/fonts/KpRoman-Regular.otf b/fonts/kpfonts-otf/fonts/KpRoman-Regular.otf Binary files differindex cf1b068200..9c7b69cf11 100644 --- a/fonts/kpfonts-otf/fonts/KpRoman-Regular.otf +++ b/fonts/kpfonts-otf/fonts/KpRoman-Regular.otf diff --git a/fonts/kpfonts-otf/fonts/KpRoman-Semibold.otf b/fonts/kpfonts-otf/fonts/KpRoman-Semibold.otf Binary files differindex 540239d045..73dbc38a3c 100644 --- a/fonts/kpfonts-otf/fonts/KpRoman-Semibold.otf +++ b/fonts/kpfonts-otf/fonts/KpRoman-Semibold.otf diff --git a/fonts/kpfonts-otf/fonts/KpRoman-SemiboldItalic.otf b/fonts/kpfonts-otf/fonts/KpRoman-SemiboldItalic.otf Binary files differindex 1aeef06d40..8b04359280 100644 --- a/fonts/kpfonts-otf/fonts/KpRoman-SemiboldItalic.otf +++ b/fonts/kpfonts-otf/fonts/KpRoman-SemiboldItalic.otf diff --git a/fonts/kpfonts-otf/fonts/KpSans-Bold.otf b/fonts/kpfonts-otf/fonts/KpSans-Bold.otf Binary files differindex daea3eeae2..b55d174757 100644 --- a/fonts/kpfonts-otf/fonts/KpSans-Bold.otf +++ b/fonts/kpfonts-otf/fonts/KpSans-Bold.otf diff --git a/fonts/kpfonts-otf/fonts/KpSans-BoldItalic.otf b/fonts/kpfonts-otf/fonts/KpSans-BoldItalic.otf Binary files differindex 8879e102aa..1fb27784b4 100644 --- a/fonts/kpfonts-otf/fonts/KpSans-BoldItalic.otf +++ b/fonts/kpfonts-otf/fonts/KpSans-BoldItalic.otf diff --git a/fonts/kpfonts-otf/fonts/KpSans-Italic.otf b/fonts/kpfonts-otf/fonts/KpSans-Italic.otf Binary files differindex e15026da53..e9896aa675 100644 --- a/fonts/kpfonts-otf/fonts/KpSans-Italic.otf +++ b/fonts/kpfonts-otf/fonts/KpSans-Italic.otf diff --git a/fonts/kpfonts-otf/fonts/KpSans-Regular.otf b/fonts/kpfonts-otf/fonts/KpSans-Regular.otf Binary files differindex 9bf68960fc..e0313341e7 100644 --- a/fonts/kpfonts-otf/fonts/KpSans-Regular.otf +++ b/fonts/kpfonts-otf/fonts/KpSans-Regular.otf diff --git a/fonts/kpfonts-otf/tex/kpfonts-otf.sty b/fonts/kpfonts-otf/tex/kpfonts-otf.sty index f93ede74f0..61c1adae96 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.62} -\def\filedate{2024-01-30} +\def\fileversion{0.63} +\def\filedate{2024-05-02} \ProvidesPackage{kpfonts-otf}[\filedate\space\fileversion] % Ensure luatex or xetex engine @@ -15,6 +15,7 @@ \newif\ifkp@lighttext \newif\ifkp@sftext \newif\ifkp@sans +\newif\ifkp@fakedscripts \newif\ifkp@largesmallcaps \newif\ifkp@altfligs \newif\ifkp@eurosym @@ -52,6 +53,7 @@ % Text options \DeclareOption{lighttext} {\kp@lighttexttrue} \DeclareOption{sftext} {\kp@sftexttrue} +\DeclareOption{fakedscripts} {\kp@fakedscriptstrue} \DeclareOption{oldstylenums} {\kp@osntrue} \DeclareOption{oldstyle} {\kp@ostrue\kp@osntrue\kp@Qtailtrue} \DeclareOption{veryoldstyle} {\kp@vostrue\kp@osntrue\kp@Qtailtrue} @@ -86,7 +88,7 @@ \RequirePackage{fontspec}[2019/01/01] % Style alias (text only) \newopentypefeature{Style}{autolongs}{+ss12} - \RequirePackage{realscripts} + \ifkp@fakedscripts \else \RequirePackage{realscripts}\fi % Two candidates for \rmfamily: \newfontfamily\KpRoman{KpRoman} \newfontfamily\KpLight{KpLight} |