Debian Codegraph @

texmf-dist/doc/fonts/pennstander-otf/pennstander-otf-doc.tex

raw
1 % !TeX TXS-program:compile = txs:///arara
2 % arara: lualatex: {shell: no, synctex: yes, interaction: batchmode}
3 % arara: lualatex: {shell: no, synctex: yes, interaction: batchmode} if found('log', '(undefined references|Please rerun|Rerun to get)')
4
5 \documentclass[a4paper]{scrartcl}
6 \usepackage{mathtools, array, varioref}
7 \usepackage[british]{babel}
8 \usepackage{pennstander-otf}
9 \usepackage{framed}
10 \usepackage{unicodefonttable}
11 \usepackage{realscripts}
12 \usepackage{graphicx}
13 \usepackage{pdfpages}
14 \renewcommand{\sffamily}{\rmfamily}
15 \setmonofont{CascadiaMono}[Scale=MatchLowercase]
16 \usepackage{microtype}
17
18 %mathfont aliases
19 \setmathfont{PennstanderMath-Thin}[version=psthin,Scale=MatchLowercase]
20 \setmathfont{PennstanderMath-ExtraLight}[version=psextralight,Scale=MatchLowercase]
21 \setmathfont{PennstanderMath-Light}[version=pslight,Scale=MatchLowercase]
22 \setmathfont{PennstanderMath-Medium}[version=psmedium,Scale=MatchLowercase]
23 \setmathfont{PennstanderMath-SemiBold}[version=pssemibold,Scale=MatchLowercase]
24 \setmathfont{PennstanderMath-Bold}[version=psbold,Scale=MatchLowercase]
25 \setmathfont{PennstanderMath-ExtraBold}[version=psextrabold,Scale=MatchLowercase]
26 \setmathfont{PennstanderMath-Black}[version=psblack,Scale=MatchLowercase]
27
28 \newcommand*{\pkg}[1]{\texttt{#1}}
29 \newcommand*{\file}[1]{\texttt{#1}}
30 \newcommand*{\ttbold}[1]{\texttt{\textbf{#1}}}
31 \newcommand*{\opt}[1]{\texttt{#1}}
32 \newcommand*{\cmd}[1]{\texttt{\textbackslash #1}}\newcommand*{\showtchar}[1]{\cmd{#1}~\csname #1\endcsname}
33
34 \newcommand{\abc}{abcdefghijklmnopqrstuvwxyz}
35 \newcommand{\ABC}{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
36 \newcommand{\samplenumbers}{0123456789}
37 \newcommand{\sampleformula}{\displaystyle\sum_{n=1}^{+\infty} \dfrac{1}{n^2} = \dfrac{\pi^2}{6}}
38
39 \setlength{\parindent}{0pt}
40 \setlength{\parskip}{6pt plus 2pt minus 2pt}
41
42 \usepackage{hyperref}
43 \hypersetup{pdftitle={Pennstander User’s Guide for LaTeX},
44 pdfauthor={Cédric PIERQUET},
45 bookmarksopen,
46 colorlinks
47 }
48 \newcommand*{\hlabel}[1]{\phantomsection\label{#1}}
49
50 \date{04/05/2026}
51 \newcommand*{\version}{0.4}
52
53 \title{Pennstander fonts (\textit{experimental}) \\User’s Guide for LaTeX (v\version)}
54 \author{Julius Ross \&\ Cédric Pierquet \\ \texttt{[email protected]}}
55
56 \begin{document}
57 \maketitle
58
59 \bigskip
60
61 \section{What is Pennstander ?}
62
63 Pennstander is a set of OpenType text and math fonts developed by Julius Ross, see \url{github.com/juliusross1} for more information.
64
65
66 Original font is from Tyler Finck, see this website for more information:
67
68 \url{https://etceteratype.co/pages/grandstander}.
69
70 \smallskip
71
72 This package is based on \texttt{v\version} version of fonts.
73
74 The text and the math fonts are licensed under the SIL Open Font License, Version 1.1.
75
76 They require LuaTeX or XeTeX as engine and the \pkg{unicode-math} package\footnote{Please read the documentation \file{unicode-math.pdf}.}, if math fonts are required or just the \pkg{fontspec} package\footnote{Please read the documentation \file{fontspec.pdf}.} otherwise.
77
78 \smallskip
79
80 A \textit{variable}\footnote{Please read the article \url{https://github.com/juliusross1/Pennstander/tree/main/docs}.} version of the font, with optical sizing, is available.
81
82 \pagebreak
83
84 \section{Usage}
85
86 \subsection{Loading text fonts and math fonts}
87
88 Several weights are available, for text and/or math version:
89
90 {\small \hfill{\pennstanderthin thin} / {\pennstanderextralight ExtraLight} / {\pennstanderlight Light} / {\pennstander Regular} / {\pennstandermedium Medium} / {\pennstandersemibold SemiBold} / {\pennstanderbold Bold} / {\pennstanderextrabold ExtraBold} / {\pennstanderblack Black}\hfill\null}
91
92 \begin{itemize}
93 \item {\mathversion{psthin}$\sampleformula$}
94 \item {\mathversion{psextralight}$\sampleformula$}
95 \item {\mathversion{pslight}$\sampleformula$}
96 \item {$\sampleformula$}
97 \item {\mathversion{psmedium}$\sampleformula$}
98 \item {\mathversion{pssemibold}$\sampleformula$}
99 \item {\mathversion{psbold}$\sampleformula$}
100 \item {\mathversion{psextrabold}$\sampleformula$}
101 \item {\mathversion{psblack}$\sampleformula$}
102 \end{itemize}
103
104 \smallskip
105
106 Files \file{Pennstander(math)-<weight>.fontspec} are provided to ensure that \textit{Italic}, \textbf{Bold}, \textbf{\textit{BoldItalic}} and \textsl{(fake)Slanted} variants are properly loaded.
107
108 \subsection{Optical sizing}
109
110 \texttt{otf} and \texttt{ttf} versions of Pennstander are provided:
111
112 \begin{itemize}
113 \item one \texttt{PennStanderVF.ttf} file, which provides \textit{optical sizing} (\texttt{opsz});
114 \item several \texttt{Pennstander-<weight>-<shape>.otf} files.
115 \end{itemize}
116
117 With \opt{opsz} loading, so with optical sizing features, it's possible that, with a size changing (\texttt{large}, \texttt{small}, \texttt{tiny},...), the rendering may not be optimal, in which case a \opt{setmainfont} may be necessary.
118
119 Therefore, loading \texttt{otf} fonts has been chosen as the default behavior.
120
121 \subsection{Basic Call}
122
123 A basic call for Pennstander text and math fonts could be:
124
125 \begin{verbatim}
126 \usepackage{pennstander-otf}
127 \end{verbatim}
128
129 It loads:
130
131 \begin{itemize}
132 \item \opt{Pennstander-Regular} as main font (without \texttt{opsz} version);
133 \item \opt{PennstanderMath-Regular} as math font.
134 \end{itemize}
135
136 It defines \cmd{eff} for \textit{florin math} $\eff$.
137
138 \bigskip
139
140 For \texttt{optical sizing} features, load Pennstander with \opt{opsz} option:
141
142 \begin{verbatim}
143 \usepackage[opsz]{pennstander-otf}
144 \end{verbatim}
145
146 \subsection{First samples}
147
148 \begin{oframed}
149 \textbf{Theorem 1 (Residue Theorem).}
150 Let $f$ be analytic in the region $G$ except for the isolated singularities $a_1,a_2,\ldots,a_m$. If $\gamma$ is a closed rectifiable curve in $G$ which does not pass through any of the points $a_k$ and if $\gamma\approx 0$ in $G$ then
151 \[
152 \frac{1}{2\pi i}\int_\gamma f = \sum_{k=1}^m n(\gamma;a_k) \text{Res}(f;a_k).
153 \]
154
155 \textbf{Theorem 2 (Maximum Modulus).}
156 \emph{Let $G$ be a bounded open set in $\mathbb{C}$ and suppose that $f$ is a continuous function on $G^-$ which is analytic in $G$. Then}
157 \[
158 \max\{|\eff(z)|:z\in G^-\}=\max \{|\eff(z)|:z\in \partial G \}.
159 \]
160 \end{oframed}
161
162 \begin{oframed}
163 $q = 4L \sin\left(\dfrac{\theta}{2}\right)\sqrt{\pi\epsilon_0mg\tan\left(\dfrac{\theta}{2}\right)}$
164 \end{oframed}
165
166 \pagebreak
167
168 \subsection{Options}
169
170 Options can be given within the package:
171
172 \begin{itemize}
173 \item \opt{Weight=...}
174
175 \textcolor{gray}{\footnotesize \opt{Thin/ExtraLight/Light/Regular/Medium/SemiBold/Bold/ExtraBold/Black}};
176 \item or individual \opt{WeightT=...,WeightM=...}
177 \item the boolean \opt{opsz} for loading pennstander with variable \texttt{VF.ttf} version;
178 \item the boolean \opt{no-text} for not loading pennstander as main font;
179 \item the boolean \opt{no-math} for not loading pennstander as math font;
180 \item the boolean \opt{no-macros} for not loading internal macros;
181 \item the boolean \opt{onlyconfig} for just loading \opt{.fontspec} files (def. \opt{false});
182
183 \textcolor{gray}{\footnotesize with activated, \opt{no-text=true}, \opt{no-math=true} and \opt{no-macros=true}}
184 \item the boolean \opt{altfour} for alternate version of 4;
185 \item the boolean \opt{frenchseven} for alternate version of 7 (with bar);
186 \item \opt{math-style=...} for unicode-math option;
187 \item \opt{bold-style=...} for unicode-math option;
188 \item \opt{StylisticSet=...} or \opt{StylisticSetT=...,StylisticSetM=...};
189 \item \opt{RawFeature=...} or \opt{RawFeatureT=...,RawFeatureM=...};
190 \item \opt{Scale=...} or \opt{ScaleT=...,ScaleM=...}.
191
192 \textcolor{gray}{\footnotesize\opt{Scale=<value>}: global scaling factor applied to both text and math fonts}
193
194 \textcolor{gray}{\footnotesize\opt{ScaleT=<value>}: scaling factor for text font only (numeric value)}
195
196 \textcolor{gray}{\footnotesize\opt{ScaleM=<value>}: scaling factor for math font only (numeric value or MatchLowercase\ldots)}
197 \end{itemize}
198
199 \pagebreak
200
201 \subsection{Manual loading}
202
203 It's also possible to load text and/or math fonts with \cmd{setmainfont} and/or \cmd{setmathfont}, thanks to \opt{fontspec} files for example.
204
205 \begin{verbatim}
206 %with otf version
207 \usepackage{fontspec}
208 \usepackage{unicode-math}
209 \setmainfont{Pennstander-<weight>}[options]
210 \setmathfont{PennstanderMath-<weight>}[options]
211 \end{verbatim}
212
213 \begin{verbatim}
214 %with ttf/opsz version
215 \usepackage[onlyconfig]{pennstander-otf}
216 \setmainfont{Pennstander-<weight>-opsz}[options]
217 \setmathfont{PennstanderMath-<weight>}[options]
218 \end{verbatim}
219
220 \subsection{Internal macros}
221
222 By default, the packages load internal macros for \textit{fontfamily}.
223
224 All macros are defined with \opt{[Scale=MatchLowercase]}.
225
226 \begin{verbatim}
227 %fontfamily
228 \newfontfamily\pennstanderthin
229 \newfontfamily\pennstanderextralight
230 \newfontfamily\pennstanderlight
231 \newfontfamily\pennstander
232 \newfontfamily\pennstandermedium
233 \newfontfamily\pennstandersemibold
234 \newfontfamily\pennstanderbold
235 \newfontfamily\pennstanderextrabold
236 \newfontfamily\pennstanderblack
237
238 %mathfont
239 \setmathfontface\pennstandermaththin
240 \setmathfontface\pennstandermathextralight
241 \setmathfontface\pennstandermathlight
242 \setmathfontface\pennstandermath
243 \setmathfontface\pennstandermathmedium
244 \setmathfontface\pennstandermathsemibold
245 \setmathfontface\pennstandermathbold
246 \setmathfontface\pennstandermathextrabold
247 \end{verbatim}
248
249 \pagebreak
250
251 \section{Openfeatures}
252
253 \subsection{For text font}
254
255 Extra openfeatures for text font available are (it is possible that not all options are compatible with fontspec):
256
257 \begin{itemize}
258 \item \opt{aalt}: Access All Alternatives
259 \item \opt{ccmp}: Glyph Composition/Decomposition
260 \item \opt{locl}: Localized Forms
261 \item \opt{sups}: Superscript
262 \item \opt{numr}: Numerators
263 \item \opt{dnom}: Denominators
264 \item \opt{frac}: Fractions
265 \item \opt{ordn}: Ordinals
266 \item \opt{pnum}: Proportional Figures
267 \item \opt{tnum}: Tabular Figures
268 \item \opt{case}: Case-Sensitive Forms
269 \item \opt{dlig}: Discretionary Ligatures
270 \item \opt{liga}: Standard Ligatures
271 \item \opt{zero}: Slashed Zero
272 \item \opt{cpsp}: Capital Spacing
273 \item \opt{ss01}: Alternate a,g,I
274 \item \opt{ss02}: Alternate A,M,N,Q,V,W,Z,v,z
275 \item \opt{ss03}: Alternate 4
276 \item \opt{ss04}: Alternate l,t
277 \item \opt{ss06}: Alternate ampersand
278 \item \opt{ss07}: Alternate 7
279 \end{itemize}
280
281 %\includegraphics[width=0.625\linewidth]{pennstander_zero}
282 %
283 %\includegraphics[width=0.625\linewidth]{pennstander_dlig}
284 %
285 %\includegraphics[width=0.625\linewidth]{pennstander_ss02}
286 %
287 %\includegraphics[width=0.625\linewidth]{pennstander_ss03}
288 %
289 %\includegraphics[width=0.625\linewidth]{pennstander_ss04}
290 %
291 %\includegraphics[width=0.625\linewidth]{pennstander_ss06}
292 %
293 %\includegraphics[width=0.625\linewidth]{pennstander_ss07}
294 %
295 %\includegraphics[width=0.625\linewidth]{pennstander_aalt}
296
297 \pagebreak
298
299 \subsection{For math font}
300
301 Extra openfeatures for math font available are (it is possible that not all options are compatible with fontspec):
302
303 \begin{itemize}
304 \item \opt{aalt}: Access All Alternatives
305 \item \opt{dtls}: Dotless Forms
306 \item \opt{zero}: Slashed Zero
307 \item \opt{frac}: Fractions
308 \item \opt{ss01}: Alternate a,g,I,Iota
309 \item \opt{ss02}: Alternate A,M,N,Q,V,W,Z,v,z,Alpha,Mu,Rho,Zeta
310 \item \opt{ss03}: Alternate 4
311 \item \opt{ss04}: Alternate l,t
312 \item \opt{ss05}: Simplified Fraktur A,K,L,X,Y,Z,x,y
313 \item \opt{ss07}: Alternate 7
314 \item \opt{ssty}: Math Script Style Alternatives
315 \item \opt{cv01}: Alternate a,g,I
316 \item \opt{cv10}: Alternate numerals
317 \item \opt{cv20}: Alternate Fences
318 \item \opt{cv21}: Alternate Fences
319 \item \opt{cv30}: Alternate Integrals (without serif)
320 \item \opt{cv31}: Alternate Integrals (serif)
321 \item \opt{cv32}: Alternate Integrals (all)
322 \item \opt{zero}: Alternate zero
323 \end{itemize}
324
325 \subsection{Unicode Private Use Area}
326
327 Glyphs assigned to Unicode Private Use Area:
328
329 \begin{itemize}
330 \item Double-struck uppercase Greek letters: \opt{U+E1002–U+E1008}
331 \item Fraction Rule: \opt{U+E000}
332 \item Radical Rule: \opt{U+E001}
333 \end{itemize}
334
335 \pagebreak
336
337 \section{List of glyphs}
338
339 \subsection{Text version}
340
341 \displayfonttable{Pennstander-Regular}
342
343 \pagebreak
344
345 \subsection{Math version}
346
347 \displayfonttable[color=purple]{PennstanderMath-Regular}
348
349 \pagebreak
350
351 \section{Alphabets}
352
353 \subsection{Text version}
354
355 \textcolor{violet}{-- Normal/\textbf{Bold}/\textit{Italic}/\textit{\textbf{BoldItalic}}/\textsl{Slanted}/\textsl{\textbf{BoldSlanted}}:}
356
357 \abc\ABC\samplenumbers
358
359 \textbf{\abc\ABC\samplenumbers}
360
361 \textit{\abc\ABC\samplenumbers}
362
363 \textit{\textbf{\abc\ABC\samplenumbers}}
364
365 \textsl{\abc\ABC\samplenumbers}
366
367 \textsl{\textbf{\abc\ABC\samplenumbers}}
368
369 \smallskip
370
371 \textit{Slanted version uses italic version.}
372
373 \subsection{Math version}
374
375 \textcolor{violet}{-- Normal/\textbf{Bold}/\textit{Italic}/\textit{\textbf{BoldItalic}}:}
376
377 $\abc\ABC\samplenumbers$
378
379 $\mathbf{\abc\ABC\samplenumbers}$
380
381 $\mathit{\abc\ABC\samplenumbers}$
382
383 $\mathit{\mathbf{\abc\ABC\samplenumbers}}$
384
385 \smallskip
386
387 \textcolor{violet}{-- mathcal/mathfrak/mathbb:}
388
389 $\mathcal{\abc\ABC}$
390
391 $\mathfrak{\abc\ABC}$
392
393 $\mathbb{\ABC\samplenumbers}$
394
395 \subsection{Samples}
396
397 The source files for these samples are available in the \href{github.com/juliusross1}{GitHub} repository and can be compiled with \texttt{ConTeXt} LMTX using \texttt{context filename.tex}.
398
399 \smallskip
400
401 Samples document can be loaded by:
402
403 \begin{itemize}
404 \item \texttt{texdoc pennstander-otf-samples-text.pdf}
405 \item \texttt{texdoc pennstander-otf-samples-math.pdf}
406 \end{itemize}
407
408
409 \end{document}