summaryrefslogtreecommitdiff
path: root/fonts/kpfonts-otf/doc
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/kpfonts-otf/doc')
-rw-r--r--fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx57
-rw-r--r--fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.pdfbin189920 -> 192022 bytes
-rw-r--r--fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.ltx56
-rw-r--r--fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.pdfbin191924 -> 194203 bytes
-rw-r--r--fonts/kpfonts-otf/doc/unimath-kpfonts.ltx68
-rw-r--r--fonts/kpfonts-otf/doc/unimath-kpfonts.pdfbin1787182 -> 1814438 bytes
6 files changed, 125 insertions, 56 deletions
diff --git a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx
index eb348001ae..c7700bbc26 100644
--- a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx
+++ b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx
@@ -41,7 +41,8 @@
\title{Kp-fonts: OpenType version}
\author{\href{mailto:daniel.flipo@free.fr}{Daniel \textsc{Flipo}}}
-\newcommand*{\version}{0.36}
+\newcommand*{\version}{0.37}
+\date{18th August, 2021}
\begin{document}
\selectlanguage{british}
@@ -65,7 +66,7 @@
\family{KpMath-Semibold} and \family{KpMath-Sans}.
\family{KpRoman} and \family{KpSans} families have small caps available in
- two sizes (SmallCaps and PetitesCaps), upper and lowercase digits
+ two sizes (SmallCaps and PetiteCaps), upper and lowercase digits
({\addfontfeatures{Numbers=Lowercase} 0123456789}), ancient ligatures
{\addfontfeatures{Ligatures=Rare} ct, st} and
{\addfontfeatures{Style=Swash}Q} a long-tailed capital Q.
@@ -134,20 +135,20 @@ and a bunch of Kp-fonts specifics symbols.
\medskip
\begin{minipage}{.45\textwidth}\test. $E=mc^2$\end{minipage}\hfill
-\begin{minipage}{.45\textwidth}\Light \test. \mathversion{light}$E=mc^2$
+\begin{minipage}{.45\textwidth}\ltseries\test. \mathversion{light}$E=mc^2$
\end{minipage}
\medskip\mathversion{base}
\begin{minipage}{.45\textwidth}\itshape \test\end{minipage}\hfill
-\begin{minipage}{.45\textwidth}\LightItalic \test\end{minipage}
+\begin{minipage}{.45\textwidth}\ltseries\itshape\test\end{minipage}
\medskip
\begin{minipage}{.45\textwidth}\bfseries \test\end{minipage}\hfill
-\begin{minipage}{.45\textwidth}\Semibold \test\end{minipage}
+\begin{minipage}{.45\textwidth}\sbseries \test\end{minipage}
\medskip
\begin{minipage}{.45\textwidth}\bfseries\itshape \test\end{minipage}\hfill
-\begin{minipage}{.45\textwidth}\SemiboldItalic \test\end{minipage}
+\begin{minipage}{.45\textwidth}\sbseries\itshape\test\end{minipage}
\medskip
@@ -157,6 +158,10 @@ and a bunch of Kp-fonts specifics symbols.
\item[nosf:] do not change Sans-Serif Text fonts, use the defaults.
\item[nott:] do not change Typewriter Text fonts, use the defaults.
\item[onlyrm:] equivalent to the last two combined.
+\item[fulloldstyle:] equivalent to options \opt{oldstyle} and
+ \opt{oldstylemath}.
+\item[fulloldstylenums:] equivalent to options \opt{oldstylenums} and
+ \opt{oldstylenumsmath}.
\end{description}
\subsection{Options for Text fonts \emph{only}}
@@ -164,6 +169,16 @@ and a bunch of Kp-fonts specifics symbols.
\begin{description}
\item[lighttext:] switches to \famvar{light} Text fonts.
+ Two more weights are provided by \pkg{kpfonts-otf.sty}:
+ with the \famvar{lighttext} (or \famvar{light}) option, \famvar{Semibold} and
+ \famvar{Extrabold} vs \famvar{Light} and \famvar{Semibold} without it.
+ These weights are available through |\ltseries|, |\sbseries| and
+ |\ebseries| commands to be used in a group or alternatively through one
+ argument commands |\textlt{}|, |\textsb{}| and |\texteb{}|.
+
+ |{\sbseries\itshape Foo}| or |\textsb{\textit{Foo}}| print
+ {\sbseries\itshape Foo}.
+
\item[oldstylenums:] provides lowercase digits as a default.
To get uppercase digits locally: |{\addfontfeature{Numbers=Lining} 123}|.
@@ -213,7 +228,7 @@ and a bunch of Kp-fonts specifics symbols.
\texttt{mysterious=} to get a round `s’ there.
\item[largesmallcaps:] prints larger \textlsc{Small Caps} than the default
- ones (\textsc{Petites Caps}).
+ ones (\textsc{Petite Caps}).
\item[altfligs :] prints alternative shapes for ligatures
{\addfontfeatures{StylisticSet=1}fi, fl, ffi, ffl}
@@ -315,7 +330,7 @@ using commands\\[.5\baselineskip]
|\set...font{|\optit{font}|}[|\optit{options}|]|.
For documents requiring no Math fonts, loading \pkg{fontspec} and using
-the |\set...font| commands is enough.
+the |\set...font| commands is enough, no need to load \pkg{kpfonts-otf} at all.
\subsection{Options for Text fonts}
@@ -327,8 +342,10 @@ Here are the options available for Text Kp-fonts:
\item[SmallCapsFeatures = \{Letters=SmallCaps\}] the |\textsc{}| command
will print larger \textlsc{Small Caps} than the default
- \textpsc{Petites Caps}.\\
- The default setting is \style{SmallCapsFeatures = \{Letters=PetiteCaps\}}.
+ \textpsc{Petite Caps}.\\
+ The default setting%
+ \footnote{Changed in v0.37 to match the original \pkg{kpfonts} package.},
+ is \style{SmallCapsFeatures = \{Letters=PetiteCaps\}}.
\item[Ligatures=TeX] (default) |'|\quad|!`|\quad|?`|\quad|--|\quad |---|\quad
print respectively\quad ’ \quad !` \quad ?`\quad -- \quad ---.
@@ -376,7 +393,7 @@ but can also be shared by different typefaces:
\defaultfontfeatures+[KpRoman,KpSans]{%
Ligatures = Rare,
Style = Swash,
- SmallCapsFeatures = {Letters=SmallCaps},
+ SmallCapsFeatures = {Letters=PetiteCaps},
}
\setmainfont{KpRoman}
\setsansfont{KpSans}
@@ -399,7 +416,23 @@ using |\addfontfeatures| inside a group, f.i.\ to print lowercase digits
\begin{verbatim}
{\addfontfeatures{Numbers=Lowercase}1234576890}
\end{verbatim}
-Actually, a shortcup is available in this case: |\oldstylenums{1234576890}|.
+Actually, a shortcut is available in this case: |\oldstylenums{1234576890}|.
+
+5. With the \family{KpRoman}, it is possible to define two more weights
+\famvar{Light} and \famvar{Semibold} borrowed from \family{KpLight}:
+\begin{verbatim}
+\newfontfamily\KpLight{KpLight}[<same options as KpRoman>]
+\newcommand*{\ltseries}{\KpLight}
+\newcommand*{\sbseries}{\KpLight\bfseries}
+\DeclareTextFontCommand{\textlt}{\ltseries}
+\DeclareTextFontCommand{\textsb}{\sbseries}
+\end{verbatim}
+ These weights are then available through |\ltseries|, |\sbseries| commands
+ to be used in a group or alternatively through one argument commands
+ |\textlt{}| and |\textsb{}|.
+
+ With the \family{KpLight}, weights \famvar{Semibold} and \famvar{Extrabold}
+ can be defined similarly.
\subsection{Options for Math fonts}
diff --git a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.pdf b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.pdf
index 1c53b58dac..73a44095b2 100644
--- a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.pdf
+++ b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.pdf
Binary files differ
diff --git a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.ltx b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.ltx
index ef89473660..658013b7a2 100644
--- a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.ltx
+++ b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.ltx
@@ -43,7 +43,8 @@
\title{Kp-fonts version OpenType}
\author{\href{mailto:daniel.flipo@free.fr}{Daniel \textsc{Flipo}}}
-\newcommand*{\version}{0.36}
+\newcommand*{\version}{0.37}
+\date{18 août 2021}
\begin{document}
\maketitle
@@ -141,20 +142,20 @@ ainsi qu’un certain nombre de symboles et de commandes spécifiques à Kp-font
\medskip
\begin{minipage}{.45\textwidth}\test{} $E=mc^2$\end{minipage}\hfill
-\begin{minipage}{.45\textwidth}\Light \test{} \mathversion{light}$E=mc^2$
+\begin{minipage}{.45\textwidth}\ltseries\test{} \mathversion{light}$E=mc^2$
\end{minipage}
\medskip\mathversion{base}
\begin{minipage}{.45\textwidth}\itshape \test\end{minipage}\hfill
-\begin{minipage}{.45\textwidth}\LightItalic \test\end{minipage}
+\begin{minipage}{.45\textwidth}\ltseries\itshape \test\end{minipage}
\medskip
\begin{minipage}{.45\textwidth}\bfseries \test\end{minipage}\hfill
-\begin{minipage}{.45\textwidth}\Semibold \test\end{minipage}
+\begin{minipage}{.45\textwidth}\sbseries \test\end{minipage}
\medskip
\begin{minipage}{.45\textwidth}\bfseries\itshape \test\end{minipage}\hfill
-\begin{minipage}{.45\textwidth}\SemiboldItalic \test\end{minipage}
+\begin{minipage}{.45\textwidth}\sbseries\itshape \test\end{minipage}
\medskip
@@ -165,6 +166,10 @@ ainsi qu’un certain nombre de symboles et de commandes spécifiques à Kp-font
\item[nosf :] Kp-fonts ne modifie pas les polices sans-serif de texte.
\item[nott :] Kp-fonts ne modifie pas les polices de texte à chasse fixe.
\item[onlyrm :] équivalente aux deux précédentes options.
+\item[fulloldstyle :] équivalente aux options \opt{oldstyle} et
+ \opt{oldstylemath}.
+\item[fulloldstylenums :] équivalente aux options \opt{oldstylenums} et
+ \opt{oldstylenumsmath}.
\end{description}
\subsection{Options des polices de texte}
@@ -174,6 +179,17 @@ Notez que ces options n'affectent que les polices de texte.
\begin{description}
\item[lighttext :] le texte est composé en utilisant les polices « light ».
+ \pkg{kpfonts-otf.sty} donne accès à des graisses intermédiaires:
+ avec l’option \famvar{lighttext} (ou \famvar{light}) on a du
+ \famvar{Semibold} et du \famvar{Extrabold}, et par défaut on a du
+ \famvar{Light} et du \famvar{Semibold}.
+ Ces graisses s’obtiennent par les commandes |\ltseries|, |\sbseries| et
+ |\ebseries| à utiliser dans un groupe ou bien grâce aux commandes à un
+ argument |\textlt{}|, |\textsb{}| et |\texteb{}|.
+
+ |{\sbseries\itshape Foo}| ou |\textsb{\textit{Foo}}| donne
+ {\sbseries\itshape Foo}.
+
\item[oldstylenums :] Les polices fournissent ici les nombres elzéviriens par
défaut.
@@ -346,7 +362,7 @@ la syntaxe classique\\[.5\baselineskip]
Ceux qui veulent utiliser les KP-fonts pour des documents sans maths, peuvent
évidemment charger uniquement \pkg{fontspec} et faire appel aux commandes
-ci-dessous.
+ci-dessous sans charger \pkg{kpfonts-otf}.
\subsection{Options des polices de texte}
@@ -357,10 +373,11 @@ Pour les polices de texte de Kp-fonts les options suivantes sont proposées :
\style{Numbers=Lining} (par défaut 1,2,3).
\item[SmallCapsFeatures = \{Letters=SmallCaps\} :] pour que la commande
- |\textsc{}| affiche les \textlsc{Grandes} petites capitales à la place des
- \textpsc{Petites} obtenues par défaut
- (option \style{SmallCapsFeatures = \{Letters=PetiteCaps\}}%
- \footnote{Accolades indispensables à cause du signe \texttt{=} !}).
+ |\textsc{}| affiche de plus \textlsc{Grandes} petites capitales à la place
+ des \textpsc{Petites} obtenues par défaut, correspondant à l’option%
+ \footnote{Inversée en version v0.37 pour coller à celle de \pkg{kpfonts}.}
+ \style{SmallCapsFeatures = \{Letters=PetiteCaps\}}%
+ \footnote{Accolades indispensables à cause du signe \texttt{=} !}.
\item[Ligatures=TeX :] (par défaut) |!`|\quad|?`|\quad|--|\quad |---|
affichent respectivement\quad !` \quad ?` -- et ---.
@@ -409,7 +426,7 @@ qu’une fois en procédant de la façon suivante :
\defaultfontfeatures+[KpRoman,KpSans]{%
Ligatures = Rare,
Style = Swash,
- SmallCapsFeatures = {Letters=SmallCaps},
+ SmallCapsFeatures = {Letters=PetiteCaps},
}
\setmainfont{KpRoman}
\setsansfont{KpSans}
@@ -434,6 +451,23 @@ commande |\addfontfeatures| dans un groupe :
{\addfontfeatures{Numbers=Lowercase}1234576890}
\end{verbatim}
+5. Avec la famille \family{KpRoman}, il est possible de definir deux graisses
+supplémentaires \famvar{Light} et \famvar{Semibold} empruntées à la famille
+\family{KpLight} comme ceci :
+\begin{verbatim}
+\newfontfamily\KpLight{KpLight}[<mêmes options que KpRoman>]
+\newcommand*{\ltseries}{\KpLight}
+\newcommand*{\sbseries}{\KpLight\bfseries}
+\DeclareTextFontCommand{\textlt}{\ltseries}
+\DeclareTextFontCommand{\textsb}{\sbseries}
+\end{verbatim}
+ Ces graisses s’obtiennent ensuite grâce aux commandes |\ltseries| et
+ |\sbseries| à utiliser dans un groupe ou bien avec les commandes à un
+ argument |\textlt{}| et |\textsb{}|.
+
+ Avec la famille \family{KpLight}, on peut définir de même les graisses
+ \famvar{Semibold} et \famvar{Extrabold}.
+
\subsection{Options des polices mathématiques}
Les options suivantes peuvent être passées à \pkg{unicode-math}%
diff --git a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.pdf b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.pdf
index 8795cc84cb..04075c8f6b 100644
--- a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.pdf
+++ b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-French.pdf
Binary files differ
diff --git a/fonts/kpfonts-otf/doc/unimath-kpfonts.ltx b/fonts/kpfonts-otf/doc/unimath-kpfonts.ltx
index 33761129b6..cc08939821 100644
--- a/fonts/kpfonts-otf/doc/unimath-kpfonts.ltx
+++ b/fonts/kpfonts-otf/doc/unimath-kpfonts.ltx
@@ -1,20 +1,25 @@
%%^^A%% unimath-symbols.ltx -- part of UNICODE-MATH <wspr.io/unicode-math>
%%^^A%% Listing of Unicode mathematics symbols using a variety of fonts.
-%% Changes (df): XITS replaced by Erewhon.
+% !TEX TS-program = LuaLaTeX
-%!TEX TS-program = LuaLaTeX
+%% Changes (df): XITS replaced by Kpfonts, Fira replaced by Libertinus,
+%% Palatino replaced by Termes, Erewhon and Garamond added.
+%% Changes by David Carlisle: https://github.com/wspr/unicode-math/issues/570
-%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SYMBOLS DEFINED BY UNICODE-MATH
-%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[final]{article}
\makeatletter
-\usepackage{ragged2e,setspace,booktabs,catchfile,shortvrb,geometry,metalogo,textcomp,longtable,tabu,hyperref}
+\usepackage{ragged2e,setspace,booktabs,catchfile,shortvrb,geometry,metalogo,textcomp,longtable,array,hyperref}
-\geometry{margin=3cm}
+\usepackage{ninecolors}
+\NineColors{saturation=high}
+
+\geometry{margin=24mm}
\hypersetup{colorlinks,linkcolor=black}
\def\cmd#1{\texttt{\textbackslash\expandafter\@gobble\string#1}}
@@ -22,7 +27,7 @@
\usepackage{fontspec}
\setmainfont{texgyrepagella}%
[
- Extension = .otf,
+ Extension = .otf ,
UprightFont = *-regular,
ItalicFont = *-italic,
BoldFont = *-bold,
@@ -52,35 +57,33 @@
}
\ExplSyntaxOff
-\defmathfont{lm}{latinmodern-math.otf}{CC6666}{LM}
-%\defmathfont{xits}{XITSMath-Regular.otf}{6666CC}{X}
-\defmathfont{stix}{STIXTwoMath-Regular.otf}{66CC66}{S}
-\defmathfont{erewhon}{Erewhon-Math.otf}{AA6666}{E}
-\defmathfont{kpfonts}{KpMath-Regular.otf}{AA66CC}{K}
-%\defmathfont{kpfonts}{KpMath-Light.otf}{AA66CC}{K}
-\defmathfont{termes}{texgyretermes-math.otf}{66CCCC}{T}
-%\defmathfont{dejavu}{texgyredejavu-math.otf}{AACC66}{D}
-\defmathfont{garamond}{Garamond-Math.otf}{AACC66}{G}
-%\defmathfont{fira}{FiraMath-Regular.otf}{AA66CC}{F}
-\defmathfont{libertinus}{LibertinusMath-Regular.otf}{AA66CC}{Li}
+\defmathfont{lm}{latinmodern-math.otf}{red5}{M}
+\defmathfont{stix}{STIXTwoMath-Regular.otf}{green5}{S}
+\defmathfont{erewhon}{Erewhon-Math.otf}{brown5}{E}
+\defmathfont{kpfonts}{KpMath-Regular.otf}{cyan5}{K}
+%\defmathfont{kpfonts}{KpMath-Light.otf}{cyan5}{K}
+\defmathfont{termes}{texgyretermes-math.otf}{violet5}{T}
+\defmathfont{libertinus}{LibertinusMath-Regular.otf}{yellow5}{L}
+\defmathfont{garamond}{Garamond-Math.otf}{magenta5}{G}
\def\INPUT{\input{unicode-math-table.tex}}
\def\TABLE{%
\par\noindent
-\begin{longtabu}[l]{@{}l *{\Nfonts}{c} lX[l]@{}}
+\setlength\tabcolsep{5pt}%
+\begin{longtable}[l]{@{}l *{\Nfonts}{c} lp{100pt}@{}}
\toprule
- \textsc{usv} & \Llm & \Lstix & \Lerewhon & \Lkpfonts & \Ltermes & \Lgaramond & \Llibertinus
- & Macro & Description \\
+ \textsc{usv} & \Llm & \Lstix & \Lerewhon & \Lkpfonts & \Ltermes & \Llibertinus
+ & \Lgaramond & Macro & Description \\
\midrule \endhead
\INPUT\\
\bottomrule
-\end{longtabu}
+\end{longtable}
}
\makeatletter
\def\USV#1{\footnotesize\scshape\MakeLowercase{u+\@gobble#1}}
\makeatother
\def\CMD#1{\footnotesize\cmd#1}
-\def\DESC#1{%
+\def\DESC#1{\vspace{-6pt}%
\begin{spacing}{0.5}
\RaggedRight\scriptsize #1%
\end{spacing}
@@ -103,8 +106,8 @@
\SYMB{#2}{erewhon}{#1} &
\SYMB{#2}{kpfonts}{#1} &
\SYMB{#2}{termes}{#1} &
- \SYMB{#2}{garamond}{#1} &
\SYMB{#2}{libertinus}{#1} &
+ \SYMB{#2}{garamond}{#1} &
\CMD{#2}
\tl_if_in:NnT \PLAIN {#2}
{
@@ -183,8 +186,8 @@ The following fonts are shown: (with approximate symbol counts)
\item[\Lerewhon] \mathversion{erewhon} $\mathup{Erewhon\ Math}$ (\ref{count:erewhon})
\item[\Lkpfonts] \mathversion{kpfonts} $\mathup{KpMath\ Regular}$ (\ref{count:kpfonts})
\item[\Ltermes] \mathversion{termes} $\mathup{TeX\ Gyre\ Termes\ Math}$ (\ref{count:termes})
-\item[\Lgaramond] \mathversion{garamond} $\mathup{Garamond\ Math}$ (\ref{count:garamond})
\item[\Llibertinus] \mathversion{libertinus} $\mathup{Libertinus\ Math}$ (\ref{count:libertinus})
+\item[\Lgaramond] \mathversion{garamond} $\mathup{Garamond\ Math}$ (\ref{count:garamond})
\end{itemize}
Symbols defined in Plain \TeX\ are indicated with {\color[gray]{0.6} \textsuperscript{\sffamily (p)}} after their macro name.
\LaTeX\ follows Plain \TeX, but defines a handful more, indicated with {\color[gray]{0.6} \textsuperscript{\sffamily (l)}}.
@@ -255,19 +258,17 @@ Note that accents will only be properly placed if used with an OpenType font wit
\SHOW\mathaccent
\endgroup
-\section{Accents, \cmd\mathaccent}
-
-Note that accents will only be properly placed if used with an OpenType font with the necessary information.
-
+% Added (df)
+\section{Accents wide, \cmd\mathaccentwide}
\begingroup
\def\SYMB#1#2#3{%
\expandafter\iffontchar\csname#2\endcsname #3\relax
\refstepcounter{#2}%
\mathversion{#2}%
- $\displaystyle#1 \mitx$%
+ $\displaystyle#1 {\mitx+\mity}$%
\fi
}
-\SHOW\mathaccent
+\SHOW\mathaccentwide
\endgroup
\section{Bottom accents, \cmd\mathbotaccent}
@@ -295,6 +296,7 @@ Note that accents will only be properly placed if used with an OpenType font wit
\SHOW\mathbotaccentwide
\endgroup
+\clearpage
\section{Big operators, \cmd\mathop}
Of the operators shown below, a subset need to be flagged by \textsf{unicode-math} for \cmd\nolimits\ adjustments.
@@ -310,7 +312,7 @@ The limits behaviour as specified by \textsf{unicode-math} are shown with grey s
\SHOW\mathop
\endgroup
-\clearpage
+%\clearpage
\section{Binary relations, \cmd\mathbin}
\SHOW\mathbin
@@ -486,7 +488,7 @@ The limits behaviour as specified by \textsf{unicode-math} are shown with grey s
\TABLE
\FINISH
-
+\mbox{}
\end{document}
\endinput
diff --git a/fonts/kpfonts-otf/doc/unimath-kpfonts.pdf b/fonts/kpfonts-otf/doc/unimath-kpfonts.pdf
index 8fea46f8ac..261e59fb10 100644
--- a/fonts/kpfonts-otf/doc/unimath-kpfonts.pdf
+++ b/fonts/kpfonts-otf/doc/unimath-kpfonts.pdf
Binary files differ