-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxheight.tex
71 lines (56 loc) · 2.38 KB
/
xheight.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
%% This is a test document that I use to display info about fonts, in
%% particular, their x-heights, and to check visually that their x-heights are
%% aligned.
%% TODO: read
%% https://tex.stackexchange.com/questions/205667/is-there-an-equivalent-to-fontspecs-scale-matchuppercase-for-pdflatex-or-how-t
\documentclass{article}
\usepackage[paperheight=13em,paperwidth=23.5em,margin=1pt]{geometry}
\usepackage[T1]{fontenc}
\setlength\parindent{0pt}
\setlength\parskip{5pt}
\usepackage{lipsum}
\frenchspacing
%% Load fonts here.
\usepackage{rntzfont}
%% \usepackage[onlytext,lf]{MinionPro}
%% \usepackage[cal=cm]{mathalfa}
%% \usepackage[scaled=0.9012325102880658]{sourcesanspro}
%% %\usepackage[scaled=1.0138889210391693]{biolinum}
%% %\usepackage[scaled=0.9563296943231442]{AlegreyaSans}
%% \usepackage[scaled=0.9584244166836252]{inconsolata}
%% \usepackage[euler-digits]{eulervm}\makeatletter\edef\zeu@Scale{0.9542461873638345}\makeatother
\begin{document}
%% Visual test page.
\clearpage\linespread{.8}\Huge
\begin{tabular}{ll}
x$x$\emph{x} x\textsf{x}\texttt{x}x & y$y$\emph{y} y\textsf{y}\texttt{y}y
\\
v$v$\emph{v} v\textsf{v}\texttt{v}v & o$o$\emph{o} o\textsf{o}\texttt{o}o
\\
a$a$\emph{a} a\textsf{a}\texttt{a}a & e$e$\emph{e} e\textsf{e}\texttt{e}e
\\
t$t$\emph{t} t\textsf{t}\texttt{t}t & n$n$\emph{n} n\textsf{n}\texttt{n}n
\\
%% i$i$\emph{i} i\textsf{i}\texttt{i}i
f$f$\emph{f} f\textsf{f}\texttt{f}f
& T$T$\emph{T} T\textsf{T}\texttt{T}T
\end{tabular}
%% Font dimension info page.
\clearpage\linespread{1}\normalsize
% empty math environment to force reloading math font for new size.
\begin{tabular}{rl}
ex/em& \the\fontdimen5\font{} / \the\fontdimen6\font\\
\sffamily sf& \sffamily \the\fontdimen5\font{} / \the\fontdimen6\font\\
\ttfamily tt& \ttfamily \the\fontdimen5\font{} / \the\fontdimen6\font\\
\rmfamily
% empty math environment forces loading math font.
math & \(\)\the\fontdimen5\textfont1{} / \the\fontdimen6\textfont1
\end{tabular}
Serif. {\sffamily Sans-serif.} {\ttfamily Monospace.} $\sqrt{x^2 + y^2}$
an\textsf{nap}olis m\textsf{o}o\textsf{n} de\textsf{liber}ate A \textsf{long} goodbye.
an\texttt{nap}olis m\texttt{o}o\texttt{n} de\texttt{liber}ate. A \texttt{long} goodbye.
One \texttt{lucky} \textsf{shot}. \texttt{Then} \textsf{hell} \textrm{broke} $\mathit{loose}$.
%%
%% %% Lorem ipsum.
%% \clearpage\linespread{1.02}\normalsize\lipsum[1]
\end{document}