Debian Codegraph @

texmf-dist/doc/latex/synthslant/synthslant-gauge.tex

raw
1 %%
2 %% This is file `synthslant-gauge.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% synthslant.dtx (with options: `gauge')
8 %%
9 %% This is a generated file.
10 %%
11 %% Copyright (C) 2024, 2025 by Ch. L. Spiel
12 %%
13 %% This work may be distributed and/or modified under the conditions
14 %% of the LaTeX Project Public License, either version 1.3c of this
15 %% license or (at your option) any later version. The latest version
16 %% of this license is in
17 %% https://www.latex-project.org/lppl.txt
18 %% and version 1.3c or later is part of all distributions of LaTeX
19 %% version 2003/12/01 or later.
20 %%
21 %% This work has the LPPL maintenance status `maintained'.
22 %%
23 %% The Current Maintainer of this work is Ch. L. Spiel.
24 %%
25 %% This work consists of the files synthslant.dtx and synthslant.ins
26 %% and the derived files synthslant.sty, synthslant-gauge.tex,
27 %% shear-transform.mp, and title.mp.
28 %%
29 %%
30 \documentclass[a4paper]{article}
31
32 \usepackage{booktabs}
33 \usepackage[tracking=alltext, letterspace=0, verbose]{microtype}
34 \usepackage{multicol}
35 \usepackage{parskip}
36
37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
38 %%
39 %% Setup SynthSlant and Load Font
40 %%
41 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
42
43 \usepackage[]{synthslant}% auto/disable; fontspec/l3draw/pdf/ps/tikz
44
45 %%
46 %% All LaTeX Variants
47 %%
48 \usepackage[T1]{fontenc}
49 %%--\usepackage{ebgaramond}\def\synthslant{.3}\def\synthnegslant{-.27}
50 %%--\usepackage{librecaslon}\def\synthslant{.38}\def\synthnegslant{-.33}
51 %%--\usepackage{merriweather}\def\synthslant{.14}\def\synthnegslant{-.12}
52 \usepackage{mlmodern}\def\synthslant{.23}\def\synthnegslant{-.21}
53 %%--\usepackage{spectral}\def\synthslant{.18}\def\synthnegslant{-.15}
54
55 %%
56 %% Requires e.g. LuaLaTeX
57 %%
58 %%--\usepackage{CharisSIL}% say: `make LATEX=lualatex gauge'
59
60 %%
61 %% Preload a reasonable font (triple?) if we work with fontspec
62 %% and have not already done so, e.g., by saying `\usepackage{...}'.
63 %%
64 \ExplSyntaxOn
65 \sys_if_engine_luatex:T
66 {
67 \cs_if_exist:NTF \l_fontspec_font
68 {}
69 {
70 \setmainfont{TeX Gyre Pagella}
71 \def\synthslant{.16}
72 \def\synthnegslant{-.14}
73 }
74 }
75 \ExplSyntaxOff
76
77 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
78 %%
79 %% End Setup/Load Font
80 %%
81 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
82
83 \renewcommand*{\arraystretch}{1.12}
84
85 \newcommand*{\code}[1]{\texttt{#1}}
86
87 \newcommand*{\cs}[1]{\texttt{\char`\\#1}}
88
89 \newcommand*{\doublealphabet}
90 {ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789}
91 \newcommand*{\doublealphabethyp}
92 {A\-B\-C\-D\-E\-F\-G\-H\-I\-J\-K\-L\-M\-N\-O\-P\-Q\-R\-S\-T\-U\-V\-W\-X\-Y\-Z\-%
93 a\-b\-c\-d\-e\-f\-g\-h\-i\-j\-k\-l\-m\-n\-o\-p\-q\-r\-s\-t\-u\-v\-w\-x\-y\-z\-%
94 0\-1\-2\-3\-4\-5\-6\-7\-8\-9}
95
96 \newcommand*{\fontsample}{aefgiv}
97 \newcommand*{\FontSample}{White Handgloves}
98 \newcommand*{\FONTSAMPLE}{H\AA{}MB\"URG\'EF\O{}\~N\v{S}}
99
100 \newcommand*{\generictextfraction}[2]
101 {\mbox{\raisebox{.4em}[0pt]{\scriptsize #1}%
102 \hspace*{-.1em}\textfractionsolidus\hspace*{-.1em}%
103 \raisebox{-.1em}[0pt][0pt]{\scriptsize #2}}}
104
105 \makeatletter
106 \newcommand*{\getpackagefullinfo}[1]{\csname ver@#1.sty\endcsname}
107
108 \def\@synthslant@getpackagedate#1/#2/#3 v#4\@nil{#1/#2/#3}
109 \newcommand*{\getpackagedate}[1]
110 {\edef\@tempa{\getpackagefullinfo{#1}}%
111 \expandafter\@synthslant@getpackagedate\@tempa\@nil}
112
113 \def\@synthslant@getpackageversion#1/#2/#3 v#4 #5\@nil{#4}
114 \newcommand*{\getpackageversion}[1]
115 {\edef\@tempa{\getpackagefullinfo{#1}}%
116 \expandafter\@synthslant@getpackageversion\@tempa\@nil}
117
118 \def\@synthslant@getpackageinfo#1/#2/#3 v#4 #5\@nil{#5}
119 \newcommand*{\getpackageinfo}[1]
120 {\edef\@tempa{\getpackagefullinfo{#1}}%
121 \expandafter\@synthslant@getpackageinfo\@tempa\@nil}
122 \makeatother
123
124 \newcommand*{\longfontsample}{The quick brown fox jumps over the lazy dog.}
125
126 \newcommand*{\measurewidth}[1]{\setbox0=\hbox{#1}\the\wd0\space}
127
128 \newcommand*{\packagename}[1]{\mbox{\textsf{#1}}}
129
130 \newcommand*{\showbaseline}{\space\rule{.5em}{.4pt}\space}
131
132 \newcommand*{\showboundingbox}[1]{
133 {\setlength{\fboxsep}{0pt}
134 \setlength{\fboxrule}{.4pt}
135 \framebox{#1}}
136 }
137
138 \let\slbox=\synthslantbox
139
140 \makeatletter
141 \newcommand*{\thewidthdiffof}[2]
142 {\setbox0=\hbox{#2}
143 \dimen0=\dimexpr\wd0 - #1\relax
144 \strip@pt\dimen0}
145 \newcommand*{\thewidthof}[1]
146 {\setbox0=\hbox{#1}
147 \dimen0=\dimexpr\numexpr\dimexpr\wd0 * 10\relax/65536\relax pt / 10\relax
148 \strip@pt\dimen0}
149 \makeatother
150
151 \addtolength{\textheight}{\headheight}
152 \addtolength{\textheight}{\headsep}
153 \setlength{\headheight}{0pt}
154 \setlength{\headsep}{0pt}
155
156 \setlength{\overfullrule}{0pt}
157
158 \pagestyle{plain}
159
160 \begin{document}
161 \begin{center}
162 \sf
163 {\huge\bfseries SynthSlant Calibration Sheet}
164
165 for \packagename{synthslant} version~\getpackageversion{synthslant} as of
166 \getpackagedate{synthslant}
167 \end{center}
168
169 Selected slant engine: {\tt\makeatletter\synthslant@engine@name\makeatother}.
170 Font name: {\makeatletter\edef\@tempa{\fontname\font}\tt\@tempa\makeatother}.
171
172 \begin{center}
173 \begin{tabular}{@{}lllll@{}}
174 \toprule
175 Shape & Code Seq. & L.case & Mixed Case & Uppercase \\
176 \midrule
177 Normal &
178 \cs{normalfont} & {\normalfont\fontsample} & {\normalfont\FontSample} & {\normalfont\FONTSAMPLE} \\
179 Italic &
180 \cs{itshape} & {\itshape\fontsample} & {\itshape\FontSample} & {\itshape\FONTSAMPLE} \\
181 \bottomrule
182 \end{tabular}
183 \end{center}
184
185 \section{Slanted Samples}
186
187 \begin{center}
188 \renewcommand*{\arraystretch}{.85}
189 \begin{tabular}{@{}llll@{}}
190 \toprule
191 Slant & L.case & Mixed Case & Uppercase \\
192 \midrule
193 .05 & \slbox{.05}{\fontsample} & \slbox{.05}{\FontSample} & \slbox{.05}{\FONTSAMPLE} \\
194 .06 & \slbox{.06}{\fontsample} & \slbox{.06}{\FontSample} & \slbox{.06}{\FONTSAMPLE} \\
195 .07 & \slbox{.07}{\fontsample} & \slbox{.07}{\FontSample} & \slbox{.07}{\FONTSAMPLE} \\
196 .08 & \slbox{.08}{\fontsample} & \slbox{.08}{\FontSample} & \slbox{.08}{\FONTSAMPLE} \\
197 .09 & \slbox{.09}{\fontsample} & \slbox{.09}{\FontSample} & \slbox{.09}{\FONTSAMPLE} \\[.2em]
198 .10 & \slbox{.10}{\fontsample} & \slbox{.10}{\FontSample} & \slbox{.10}{\FONTSAMPLE} \\
199 .11 & \slbox{.11}{\fontsample} & \slbox{.11}{\FontSample} & \slbox{.11}{\FONTSAMPLE} \\
200 .12 & \slbox{.12}{\fontsample} & \slbox{.12}{\FontSample} & \slbox{.12}{\FONTSAMPLE} \\
201 .13 & \slbox{.13}{\fontsample} & \slbox{.13}{\FontSample} & \slbox{.13}{\FONTSAMPLE} \\
202 .14 & \slbox{.14}{\fontsample} & \slbox{.14}{\FontSample} & \slbox{.14}{\FONTSAMPLE} \\
203 .15 & \slbox{.15}{\fontsample} & \slbox{.15}{\FontSample} & \slbox{.15}{\FONTSAMPLE} \\
204 .16 & \slbox{.16}{\fontsample} & \slbox{.16}{\FontSample} & \slbox{.16}{\FONTSAMPLE} \\
205 .17 & \slbox{.17}{\fontsample} & \slbox{.17}{\FontSample} & \slbox{.17}{\FONTSAMPLE} \\
206 .18 & \slbox{.18}{\fontsample} & \slbox{.18}{\FontSample} & \slbox{.18}{\FONTSAMPLE} \\
207 .19 & \slbox{.19}{\fontsample} & \slbox{.19}{\FontSample} & \slbox{.19}{\FONTSAMPLE} \\[.2em]
208 .20 & \slbox{.20}{\fontsample} & \slbox{.20}{\FontSample} & \slbox{.20}{\FONTSAMPLE} \\
209 .21 & \slbox{.21}{\fontsample} & \slbox{.21}{\FontSample} & \slbox{.21}{\FONTSAMPLE} \\
210 .22 & \slbox{.22}{\fontsample} & \slbox{.22}{\FontSample} & \slbox{.22}{\FONTSAMPLE} \\
211 .23 & \slbox{.23}{\fontsample} & \slbox{.23}{\FontSample} & \slbox{.23}{\FONTSAMPLE} \\
212 .24 & \slbox{.24}{\fontsample} & \slbox{.24}{\FontSample} & \slbox{.24}{\FONTSAMPLE} \\
213 .25 & \slbox{.25}{\fontsample} & \slbox{.25}{\FontSample} & \slbox{.25}{\FONTSAMPLE} \\
214 .26 & \slbox{.26}{\fontsample} & \slbox{.26}{\FontSample} & \slbox{.26}{\FONTSAMPLE} \\
215 .27 & \slbox{.27}{\fontsample} & \slbox{.27}{\FontSample} & \slbox{.27}{\FONTSAMPLE} \\
216 .28 & \slbox{.28}{\fontsample} & \slbox{.28}{\FontSample} & \slbox{.28}{\FONTSAMPLE} \\
217 .29 & \slbox{.29}{\fontsample} & \slbox{.29}{\FontSample} & \slbox{.29}{\FONTSAMPLE} \\[.2em]
218 .30 & \slbox{.30}{\fontsample} & \slbox{.30}{\FontSample} & \slbox{.30}{\FONTSAMPLE} \\
219 .31 & \slbox{.31}{\fontsample} & \slbox{.31}{\FontSample} & \slbox{.31}{\FONTSAMPLE} \\
220 .32 & \slbox{.32}{\fontsample} & \slbox{.32}{\FontSample} & \slbox{.32}{\FONTSAMPLE} \\
221 .33 & \slbox{.33}{\fontsample} & \slbox{.33}{\FontSample} & \slbox{.33}{\FONTSAMPLE} \\
222 .34 & \slbox{.34}{\fontsample} & \slbox{.34}{\FontSample} & \slbox{.34}{\FONTSAMPLE} \\
223 .35 & \slbox{.35}{\fontsample} & \slbox{.35}{\FontSample} & \slbox{.35}{\FONTSAMPLE} \\
224 .36 & \slbox{.36}{\fontsample} & \slbox{.36}{\FontSample} & \slbox{.36}{\FONTSAMPLE} \\
225 .37 & \slbox{.37}{\fontsample} & \slbox{.37}{\FontSample} & \slbox{.37}{\FONTSAMPLE} \\
226 .38 & \slbox{.38}{\fontsample} & \slbox{.38}{\FontSample} & \slbox{.38}{\FONTSAMPLE} \\
227 .39 & \slbox{.39}{\fontsample} & \slbox{.39}{\FontSample} & \slbox{.39}{\FONTSAMPLE} \\
228 \bottomrule
229 \end{tabular}
230 \end{center}
231
232 \clearpage
233 \section{Upright Italic Samples}
234
235 \begin{center}
236 \renewcommand*{\arraystretch}{.85}
237 \begin{tabular}{@{}llll@{}}
238 \toprule
239 Slant & L.case & Mixed Case & Uppercase \\
240 \midrule
241 \textminus.05 & \slbox{-.05}{\itshape\fontsample} & \slbox{-.05}{\itshape\FontSample} & \slbox{-.05}{\itshape\FONTSAMPLE} \\
242 \textminus.06 & \slbox{-.06}{\itshape\fontsample} & \slbox{-.06}{\itshape\FontSample} & \slbox{-.06}{\itshape\FONTSAMPLE} \\
243 \textminus.07 & \slbox{-.07}{\itshape\fontsample} & \slbox{-.07}{\itshape\FontSample} & \slbox{-.07}{\itshape\FONTSAMPLE} \\
244 \textminus.08 & \slbox{-.08}{\itshape\fontsample} & \slbox{-.08}{\itshape\FontSample} & \slbox{-.08}{\itshape\FONTSAMPLE} \\
245 \textminus.09 & \slbox{-.09}{\itshape\fontsample} & \slbox{-.09}{\itshape\FontSample} & \slbox{-.09}{\itshape\FONTSAMPLE} \\[.2em]
246 \textminus.10 & \slbox{-.10}{\itshape\fontsample} & \slbox{-.10}{\itshape\FontSample} & \slbox{-.10}{\itshape\FONTSAMPLE} \\
247 \textminus.11 & \slbox{-.11}{\itshape\fontsample} & \slbox{-.11}{\itshape\FontSample} & \slbox{-.11}{\itshape\FONTSAMPLE} \\
248 \textminus.12 & \slbox{-.12}{\itshape\fontsample} & \slbox{-.12}{\itshape\FontSample} & \slbox{-.12}{\itshape\FONTSAMPLE} \\
249 \textminus.13 & \slbox{-.13}{\itshape\fontsample} & \slbox{-.13}{\itshape\FontSample} & \slbox{-.13}{\itshape\FONTSAMPLE} \\
250 \textminus.14 & \slbox{-.14}{\itshape\fontsample} & \slbox{-.14}{\itshape\FontSample} & \slbox{-.14}{\itshape\FONTSAMPLE} \\
251 \textminus.15 & \slbox{-.15}{\itshape\fontsample} & \slbox{-.15}{\itshape\FontSample} & \slbox{-.15}{\itshape\FONTSAMPLE} \\
252 \textminus.16 & \slbox{-.16}{\itshape\fontsample} & \slbox{-.16}{\itshape\FontSample} & \slbox{-.16}{\itshape\FONTSAMPLE} \\
253 \textminus.17 & \slbox{-.17}{\itshape\fontsample} & \slbox{-.17}{\itshape\FontSample} & \slbox{-.17}{\itshape\FONTSAMPLE} \\
254 \textminus.18 & \slbox{-.18}{\itshape\fontsample} & \slbox{-.18}{\itshape\FontSample} & \slbox{-.18}{\itshape\FONTSAMPLE} \\
255 \textminus.19 & \slbox{-.19}{\itshape\fontsample} & \slbox{-.19}{\itshape\FontSample} & \slbox{-.19}{\itshape\FONTSAMPLE} \\[.2em]
256 \textminus.20 & \slbox{-.20}{\itshape\fontsample} & \slbox{-.20}{\itshape\FontSample} & \slbox{-.20}{\itshape\FONTSAMPLE} \\
257 \textminus.21 & \slbox{-.21}{\itshape\fontsample} & \slbox{-.21}{\itshape\FontSample} & \slbox{-.21}{\itshape\FONTSAMPLE} \\
258 \textminus.22 & \slbox{-.22}{\itshape\fontsample} & \slbox{-.22}{\itshape\FontSample} & \slbox{-.22}{\itshape\FONTSAMPLE} \\
259 \textminus.23 & \slbox{-.23}{\itshape\fontsample} & \slbox{-.23}{\itshape\FontSample} & \slbox{-.23}{\itshape\FONTSAMPLE} \\
260 \textminus.24 & \slbox{-.24}{\itshape\fontsample} & \slbox{-.24}{\itshape\FontSample} & \slbox{-.24}{\itshape\FONTSAMPLE} \\
261 \textminus.25 & \slbox{-.25}{\itshape\fontsample} & \slbox{-.25}{\itshape\FontSample} & \slbox{-.25}{\itshape\FONTSAMPLE} \\
262 \textminus.26 & \slbox{-.26}{\itshape\fontsample} & \slbox{-.26}{\itshape\FontSample} & \slbox{-.26}{\itshape\FONTSAMPLE} \\
263 \textminus.27 & \slbox{-.27}{\itshape\fontsample} & \slbox{-.27}{\itshape\FontSample} & \slbox{-.27}{\itshape\FONTSAMPLE} \\
264 \textminus.28 & \slbox{-.28}{\itshape\fontsample} & \slbox{-.28}{\itshape\FontSample} & \slbox{-.28}{\itshape\FONTSAMPLE} \\
265 \textminus.29 & \slbox{-.29}{\itshape\fontsample} & \slbox{-.29}{\itshape\FontSample} & \slbox{-.29}{\itshape\FONTSAMPLE} \\[.2em]
266 \textminus.30 & \slbox{-.30}{\itshape\fontsample} & \slbox{-.30}{\itshape\FontSample} & \slbox{-.30}{\itshape\FONTSAMPLE} \\
267 \textminus.31 & \slbox{-.31}{\itshape\fontsample} & \slbox{-.31}{\itshape\FontSample} & \slbox{-.31}{\itshape\FONTSAMPLE} \\
268 \textminus.32 & \slbox{-.32}{\itshape\fontsample} & \slbox{-.32}{\itshape\FontSample} & \slbox{-.32}{\itshape\FONTSAMPLE} \\
269 \textminus.33 & \slbox{-.33}{\itshape\fontsample} & \slbox{-.33}{\itshape\FontSample} & \slbox{-.33}{\itshape\FONTSAMPLE} \\
270 \textminus.34 & \slbox{-.34}{\itshape\fontsample} & \slbox{-.34}{\itshape\FontSample} & \slbox{-.34}{\itshape\FONTSAMPLE} \\
271 \textminus.35 & \slbox{-.35}{\itshape\fontsample} & \slbox{-.35}{\itshape\FontSample} & \slbox{-.35}{\itshape\FONTSAMPLE} \\
272 \textminus.36 & \slbox{-.36}{\itshape\fontsample} & \slbox{-.36}{\itshape\FontSample} & \slbox{-.36}{\itshape\FONTSAMPLE} \\
273 \textminus.37 & \slbox{-.37}{\itshape\fontsample} & \slbox{-.37}{\itshape\FontSample} & \slbox{-.37}{\itshape\FONTSAMPLE} \\
274 \textminus.38 & \slbox{-.38}{\itshape\fontsample} & \slbox{-.38}{\itshape\FontSample} & \slbox{-.38}{\itshape\FONTSAMPLE} \\
275 \textminus.39 & \slbox{-.39}{\itshape\fontsample} & \slbox{-.39}{\itshape\FontSample} & \slbox{-.39}{\itshape\FONTSAMPLE} \\
276 \bottomrule
277 \end{tabular}
278 \end{center}
279
280 \clearpage
281 \section{Examples}
282
283 \let\r=\textrm
284 \let\i=\textit
285 \let\u=\textsynthuprightitalic
286 \let\y=\textsynthslant
287
288 The current slant values are
289 \mbox{\cs{synthslant}\:=\:\synthslant} and
290 \mbox{\cs{synthnegslant}\:=\:\synthnegslant}.
291
292 \subsection{Copy}
293
294 We mix different shapes to gauge the homogeneity of slant angles and
295 overall gray values. Some overfull horizontal boxes are possible even with
296 package~\packagename{microtype} being active.
297
298 \setlength{\columnsep}{20pt}
299 \begin{multicols}{2}\fussy
300 \setlength{\overfullrule}{0pt}
301 \paragraph{Roman/Italic.}\leavevmode
302
303 \r{Grumpy} \i{wizards} \r{make} \i{toxic} \r{brew} \i{for} \r{the} \i{evil} \r{Queen} \i{and} \r{Jack.}
304 \r{One} \i{morning,} \r{when} \i{Gregor} \r{Samsa} \i{woke} \r{from} \i{troubled} \r{dreams,}
305 \r{he} \i{found} \r{himself} \i{transformed} \r{in} \i{his} \r{bed} \i{into} \r{a} \i{horrible} \r{vermin.}
306 \r{He} \i{lay} \r{on} \i{his} \r{armour-like} \i{back,}
307 \r{and} \i{if} \r{he} \i{lifted} \i{his} \r{head}
308 \r{a} \i{little} \r{he} \i{could} \r{see} \i{his} \r{brown} \i{belly,}
309 \r{slightly} \i{domed} \r{and} \i{divided} \r{by} \i{arches} \r{into} \i{stiff} \r{sections.}
310 \r{The} \i{bedding} \r{was} \i{hardly} \r{able} \i{to}
311 \r{cover} \i{it} \r{and} \i{seemed} \r{ready} \i{to} \r{slide} \i{off} \r{any} \i{moment.}
312 \r{His} \i{many} \r{legs,}
313 \r{pitifully} \i{thin} \r{compared} \i{with} \r{the} \i{size} \r{of} \i{the} \r{rest} \i{of} \r{him,}
314 \r{waved} \i{about} \r{helplessly} \i{as} \r{he} \i{looked.}
315
316 \paragraph{Roman/Slanted Roman.}\leavevmode
317
318 \r{Grumpy} \y{wizards} \r{make} \y{toxic} \r{brew} \y{for} \r{the} \y{evil} \r{Queen} \y{and} \r{Jack.}
319 \r{One} \y{morn\-ing,} \r{when} \y{Gregor} \r{Samsa} \y{woke} \r{from} \y{trou\-bled} \r{dreams,}
320 \r{he} \y{found} \r{himself} \y{trans\-formed} \r{in} \y{his} \r{bed} \y{into} \r{a} \y{hor\-ri\-ble} \r{vermin.}
321 \r{He} \y{lay} \r{on} \y{his} \r{armour-like} \y{back,}
322 \r{and} \y{if} \r{he} \y{lifted} \y{his} \r{head}
323 \r{a} \y{little} \r{he} \y{could} \r{see} \y{his} \r{brown} \y{belly,}
324 \r{slightly} \y{domed} \r{and} \y{divided} \r{by} \y{arches} \r{into} \y{stiff} \r{sections.}
325 \r{The} \y{bedding} \r{was} \y{hardly} \r{able} \y{to}
326 \r{cover} \y{it} \r{and} \y{seemed} \r{ready} \y{to} \r{slide} \y{off} \r{any} \y{mo\-ment.}
327 \r{His} \y{many} \r{legs,}
328 \r{pitifully} \y{thin} \r{compared} \y{with} \r{the} \y{size} \r{of} \y{the} \r{rest} \y{of} \r{him,}
329 \r{waved} \y{about} \r{helplessly} \y{as} \r{he} \y{looked.}
330
331 \paragraph{Italic/Slanted Roman.}\leavevmode
332
333 \i{Grumpy} \y{wizards} \i{make} \y{toxic} \i{brew} \y{for} \i{the} \y{evil} \i{Queen} \y{and} \i{Jack.}
334 \i{One} \y{morn\-ing,} \i{when} \y{Gregor} \i{Samsa} \y{woke} \i{from} \y{trou\-bled} \i{dreams,}
335 \i{he} \y{found} \i{himself} \y{trans\-formed} \i{in} \y{his} \i{bed} \y{into} \i{a} \y{hor\-ri\-ble} \i{vermin.}
336 \i{He} \y{lay} \i{on} \y{his} \i{armour-like} \y{back,}
337 \i{and} \y{if} \i{he} \y{lifted} \y{his} \i{head}
338 \i{a} \y{little} \i{he} \y{could} \i{see} \y{his} \i{brown} \y{belly,}
339 \i{slightly} \y{domed} \i{and} \y{divided} \i{by} \y{arches} \i{into} \y{stiff} \i{sections.}
340 \i{The} \y{bedding} \i{was} \y{hardly} \i{able} \y{to}
341 \i{cover} \y{it} \i{and} \y{seemed} \i{ready} \y{to} \i{slide} \y{off} \i{any} \y{mo\-ment.}
342 \i{His} \y{many} \i{legs,}
343 \i{pitifully} \y{thin} \i{compared} \y{with} \i{the} \y{size} \i{of} \y{the} \i{rest} \y{of} \i{him,}
344 \i{waved} \y{about} \i{helplessly} \y{as} \i{he} \y{looked.}
345
346 \paragraph{Roman/Italic/Slanted Roman.}\leavevmode
347
348 \r{Grumpy} \i{wizards} \y{make} \r{toxic} \i{brew} \y{for} \r{the} \i{evil} \y{Queen} \r{and} \i{Jack.}
349 \r{One} \i{morning,} \y{when} \r{Gregor} \i{Samsa} \y{woke} \r{from} \i{troubled} \y{dreams,}
350 \r{he} \i{found} \y{him\-self} \r{transformed} \i{in} \y{his} \r{bed} \i{into} \r{a} \i{horrible} \y{ver\-min.}
351 \r{He} \i{lay} \y{on} \r{his} \i{armour-like} \y{back,}
352 \r{and} \i{if} \y{he} \r{lifted} \i{his} \y{head}
353 \r{a} \i{little} \y{he} \r{could} \i{see} \y{his} \r{brown} \i{belly,}
354 \r{slightly} \i{domed} \y{and} \r{divided} \i{by} \y{arches} \r{into} \i{stiff} \y{sec\-tions.}
355 \r{The} \i{bedding} \y{was} \r{hardly} \i{able} \y{to}
356 \r{cover} \i{it} \y{and} \r{seemed} \i{ready} \y{to} \r{slide} \i{off} \y{any} \r{moment.}
357 \r{His} \i{many} \y{legs,}
358 \r{pitifully} \i{thin} \y{compared} \r{with} \i{the} \y{size} \r{of} \i{the} \y{rest} \r{of} \i{him,}
359 \r{waved} \i{about} \y{helplessly} \r{as} \r{he} \y{looked.}
360
361 \paragraph{Roman/Upright Italic.}\leavevmode
362
363 \r{Grumpy} \u{wizards} \r{make} \u{toxic} \r{brew} \u{for} \r{the} \u{evil} \r{Queen} \u{and} \r{Jack.}
364 \r{One} \u{morn\-ing,} \r{when} \u{Gregor} \r{Samsa} \u{woke} \r{from} \u{trou\-bled} \r{dreams,}
365 \r{he} \u{found} \r{himself} \u{trans\-formed} \r{in} \u{his} \r{bed} \u{into} \r{a} \u{hor\-ri\-ble} \r{vermin.}
366 \r{He} \u{lay} \r{on} \u{his} \r{armour-like} \u{back,}
367 \r{and} \u{if} \r{he} \u{lifted} \u{his} \r{head}
368 \r{a} \u{little} \r{he} \u{could} \r{see} \u{his} \r{brown} \u{belly,}
369 \r{slightly} \u{domed} \r{and} \u{divided} \r{by} \u{arches} \r{into} \u{stiff} \r{sections.}
370 \r{The} \u{bedding} \r{was} \u{hardly} \r{able} \u{to}
371 \r{cover} \u{it} \r{and} \u{seemed} \r{ready} \u{to} \r{slide} \u{off} \r{any} \u{mo\-ment.}
372 \r{His} \u{many} \r{legs,}
373 \r{pitifully} \u{thin} \r{compared} \u{with} \r{the} \u{size} \r{of} \u{the} \r{rest} \u{of} \r{him,}
374 \r{waved} \u{about} \r{helplessly} \u{as} \r{he} \u{looked.}
375 \end{multicols}
376
377 \clearpage
378 \subsection{Bounding Box}
379
380 Thin lines indicate the baseline. All bounding boxes should be very tight. A little piercing
381 into the box in the direction of the slant operation is acceptable.
382
383 \begin{center}
384 \begin{tabular}{@{}l@{\showbaseline}l@{\showbaseline}l@{\showbaseline}}
385 \cs{textrm} &
386 \showboundingbox{\textrm{\fontsample}} &
387 \showboundingbox{\textrm{\FONTSAMPLE}} \\
388 \cs{textit} &
389 \showboundingbox{\textit{\fontsample}} &
390 \showboundingbox{\textit{\FONTSAMPLE}} \\
391 \cs{synthslantbox}\code{\{\synthslant\}} &
392 \showboundingbox{\synthslantbox{\synthslant}{\fontsample}} &
393 \showboundingbox{\synthslantbox{\synthslant}{\FONTSAMPLE}} \\
394 \cs{synthslantbox}\code{\{\synthnegslant\}} &
395 \showboundingbox{\synthslantbox{\synthnegslant}{\itshape\fontsample}} &
396 \showboundingbox{\synthslantbox{\synthnegslant}{\itshape\FONTSAMPLE}} \\
397 \cs{textsynthslant} &
398 \showboundingbox{\textsynthslant{\fontsample}} &
399 \showboundingbox{\textsynthslant{\FONTSAMPLE}} \\
400 \cs{textsynthuprightitalic} &
401 \showboundingbox{\textsynthuprightitalic{\fontsample}} &
402 \showboundingbox{\textsynthuprightitalic{\FONTSAMPLE}}
403 \end{tabular}
404 \end{center}
405
406 \subsection{Width Change with \cs{synthslantbox}?}
407
408 Widths of the alphabet in uppercase and lowercase letter plus the digits. The ``hyp''~version
409 contains discretionary hyphens (\cs{-}) between each of the letters or digits. The absolute
410 value of all deltas should be much less than 3pt.
411
412 \begin{center}
413 \newlength{\abcplain}\settowidth{\abcplain}{\doublealphabet}
414 \newlength{\abchyp}\settowidth{\abchyp}{\doublealphabethyp}
415 \begin{tabular}[t]{@{}lrll@{}}
416 \toprule
417 \cs{upshape} & Slant & Width & Delta \\
418 {} & & pt & pt \\
419 \midrule
420 ABC & --- & \thewidthof{\doublealphabet} & --- \\
421 ABC hyp & --- & \thewidthof{\doublealphabethyp} & --- \\
422 %
423 ABC & 0 &
424 \thewidthof{\synthslantbox{0}{\doublealphabet}} &
425 \thewidthdiffof{\abcplain}{\synthslantbox{0}{\doublealphabet}} \\
426 ABC hyp & 0
427 & \thewidthof{\synthslantbox{0}{\doublealphabethyp}} &
428 \thewidthdiffof{\abchyp}{\synthslantbox{0}{\doublealphabethyp}} \\
429 %
430 ABC & .1 &
431 \thewidthof{\synthslantbox{.1}{\doublealphabet}} &
432 \thewidthdiffof{\abcplain}{\synthslantbox{.1}{\doublealphabet}} \\
433 ABC hyp & .1 &
434 \thewidthof{\synthslantbox{.1}{\doublealphabethyp}} &
435 \thewidthdiffof{\abchyp}{\synthslantbox{.1}{\doublealphabethyp}} \\
436 %
437 ABC & .2 &
438 \thewidthof{\synthslantbox{.2}{\doublealphabet}} &
439 \thewidthdiffof{\abcplain}{\synthslantbox{.2}{\doublealphabet}} \\
440 ABC hyp & .2 &
441 \thewidthof{\synthslantbox{.2}{\doublealphabethyp}} &
442 \thewidthdiffof{\abchyp}{\synthslantbox{.2}{\doublealphabethyp}} \\
443 %
444 ABC & .3 &
445 \thewidthof{\synthslantbox{.3}{\doublealphabet}} &
446 \thewidthdiffof{\abcplain}{\synthslantbox{.3}{\doublealphabet}} \\
447 ABC hyp & .3 &
448 \thewidthof{\synthslantbox{.3}{\doublealphabethyp}} &
449 \thewidthdiffof{\abchyp}{\synthslantbox{.3}{\doublealphabethyp}} \\
450 \bottomrule
451 \end{tabular}
452 \qquad
453 \newlength{\abcplainitalic}\settowidth{\abcplainitalic}{\itshape\doublealphabet}
454 \newlength{\abchypitalic}\settowidth{\abchypitalic}{\itshape\doublealphabethyp}
455 \begin{tabular}[t]{@{}lrll@{}}
456 \toprule
457 \cs{itshape} & Slant & Width & Delta \\
458 {} & & pt & pt \\
459 \midrule
460 ABC & --- & \thewidthof{\itshape\doublealphabet} & --- \\
461 ABC hyp & --- & \thewidthof{\itshape\doublealphabethyp} & --- \\
462 %
463 ABC & 0 &
464 \thewidthof{\synthslantbox{0}{\itshape\doublealphabet}} &
465 \thewidthdiffof{\abcplainitalic}{\synthslantbox{0}{\itshape\doublealphabet}} \\
466 ABC hyp & 0 &
467 \thewidthof{\synthslantbox{0}{\itshape\doublealphabethyp}} &
468 \thewidthdiffof{\abchypitalic}{\synthslantbox{0}{\itshape\doublealphabethyp}} \\
469 %
470 ABC & -.1 &
471 \thewidthof{\synthslantbox{-.1}{\itshape\doublealphabet}} &
472 \thewidthdiffof{\abcplainitalic}{\synthslantbox{-.1}{\itshape\doublealphabet}} \\
473 ABC hyp & -.1 &
474 \thewidthof{\synthslantbox{-.1}{\itshape\doublealphabethyp}} &
475 \thewidthdiffof{\abchypitalic}{\synthslantbox{-.1}{\itshape\doublealphabethyp}} \\
476 %
477 ABC & -.2 &
478 \thewidthof{\synthslantbox{-.2}{\itshape\doublealphabet}} &
479 \thewidthdiffof{\abcplainitalic}{\synthslantbox{-.2}{\itshape\doublealphabet}} \\
480 ABC hyp & -.2 &
481 \thewidthof{\synthslantbox{-.2}{\itshape\doublealphabethyp}} &
482 \thewidthdiffof{\abchypitalic}{\synthslantbox{-.2}{\itshape\doublealphabethyp}} \\
483 %
484 ABC & -.3 &
485 \thewidthof{\synthslantbox{-.3}{\itshape\doublealphabet}} &
486 \thewidthdiffof{\abcplainitalic}{\synthslantbox{-.3}{\itshape\doublealphabet}} \\
487 ABC hyp & -.3 &
488 \thewidthof{\synthslantbox{-.3}{\itshape\doublealphabethyp}} &
489 \thewidthdiffof{\abchypitalic}{\synthslantbox{-.3}{\itshape\doublealphabethyp}} \\
490 \bottomrule
491 \end{tabular}
492 \end{center}
493
494 \subsection{Line Breaking}
495
496 Left: plain text, \\
497 right: \code{\cs{textsynthslant}\{Show line break\cs{-}ing with a sen\cs{-}tence.\}}
498
499 \begin{center}
500 \setlength{\overfullrule}{0pt}
501 \begin{minipage}[t]{0pt}Show line breaking with a sentence.\end{minipage}%
502 \hspace*{100pt}%
503 \begin{minipage}[t]{0pt}\textsynthslant{Show line break\-ing with a sen\-tence.}\end{minipage}
504 \end{center}
505
506 \noindent
507 Left: \code{Schi\cs{discretionary}\{ff-\}\{f\}\{ff\}ahrt}, \\
508 right: \code{\cs{textsynthslant}\{Schi\cs{discretionary}\{ff-\}\{f\}\{ff\}ahrt\}}
509
510 \begin{center}
511 \setlength{\overfullrule}{0pt}
512 \begin{minipage}[t]{0pt}Schi\discretionary{ff-}{f}{ff}ahrt\end{minipage}%
513 \hspace*{100pt}%
514 \begin{minipage}[t]{0pt}\textsynthslant{Schi\discretionary{ff-}{f}{ff}ahrt}\end{minipage}
515 \end{center}
516
517 \subsection{Microtype Enhancements}
518
519 \ifdefined\SetTracking
520 Package \packagename{microtype} loaded.
521
522 Test different trackings in the \code{synthnegslant}~context.
523
524 \begin{center}
525 \setlength{\overfullrule}{0pt}
526 \newcommand*{\thinvrule}{\rule{.4pt}{.7em}}
527 \newcommand{\settracking}[2]
528 {\SetTracking[context=synthnegslant,
529 no ligatures={f},
530 outer kerning={0,0},
531 spacing={#2*,,}]
532 {encoding=*, shape=it}
533 {#1}}
534 \newcommand*{\smallextratracking}{20}
535 \newcommand*{\smallextraspacing}{150}
536 \newcommand*{\bigextratracking}{250}
537 \newcommand*{\bigextraspacing}{300}
538 \begin{tabular}{@{}rrll@{}}
539 \toprule
540 Tracking &
541 Spacing &
542 \raisebox{-.5\normalbaselineskip}[0pt][0pt]{Sample} &
543 \raisebox{-.5\normalbaselineskip}[0pt][0pt]{Example sentence} \\
544 {\small\generictextfraction{1}{1000}}\:em & {\small\generictextfraction{dim}{1000}} & & \\
545 \midrule
546 0 & 0 &
547 \settracking{0}{0}\thinvrule\textsynthuprightitalic{\fontsample}\thinvrule &
548 \settracking{0}{0}\thinvrule\textsynthuprightitalic{\longfontsample}\thinvrule \\
549 \smallextratracking & \smallextraspacing &
550 \settracking{\smallextratracking}{\smallextraspacing}%
551 \thinvrule\textsynthuprightitalic{\fontsample}\thinvrule &
552 \settracking{\smallextratracking}{\smallextraspacing}%
553 \thinvrule\textsynthuprightitalic{\longfontsample}\thinvrule \\
554 \bigextratracking & \bigextraspacing &
555 \settracking{\bigextratracking}{\bigextraspacing}%
556 \thinvrule\textsynthuprightitalic{\fontsample}\thinvrule &
557 \settracking{\bigextratracking}{\bigextraspacing}%
558 \thinvrule\textsynthuprightitalic{\longfontsample}\thinvrule \\
559 \bottomrule
560 \end{tabular}
561 \settracking{0}{0}% reset extra tracking
562 \end{center}
563
564 \noindent All samples are tightly bracketed by thin horizontal rules
565 to reveal possible outer spacing problems.
566 \else
567 Package \packagename{microtype} not loaded.
568 No Microtype effects to show.
569 \fi
570 \end{document}
571 \endinput
572 %%
573 %% End of file `synthslant-gauge.tex'.