diff options
Diffstat (limited to 'fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx')
-rw-r--r-- | fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx | 57 |
1 files changed, 45 insertions, 12 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} |