Files
texrra-engine/examples/native-bootstrap/dynamic-fonts.tex
T

29 lines
1.1 KiB
TeX

% Explicit font requests, actual resources and arbitrary sizes; no format macros.
\catcode123=1 \catcode125=2 \catcode35=6
\defaulthyphenchar=45
\font\body=cmr10 at12pt
\font\small=cmr7 at9pt
\font\bold=cmbx10 at13pt
\font\italic=cmti10 scaled1201
\font\mono=cmtt10 at11pt
\font\sans=cmss10 scaled1150
\hsize=330pt \parindent=0pt \baselineskip=20pt \parskip=7pt
\parfillskip=0pt plus1fil \pretolerance=10000 \tolerance=10000
\body Real native fonts retain the requested resource and size. Roman text,
{\bold bold text}, {\italic italic text}, {\mono mono text}, {\sans sans text},
and {\small a smaller optical master scaled to nine points} share this paragraph.\par
\body office affine ff fi fl ffi ffl -- --- ``quotes'' !` ?`\par
\bold office affine ff fi fl ffi ffl -- --- ``quotes''\par
\italic office affine ff fi fl ffi ffl -- --- ``quotes''\par
\mono office affine ff fi fl ffi ffl -- --- ``quotes''\par
\small CMR7 is used at nine points without replacement.\par
\body
\setbox0=\hbox{A V}
{\fontdimen2\body=5pt}
\copy0\par
A V\par
\fontdimen6\body=18pt \fontdimen5\body=7pt
\setbox1=\hbox{A\hskip1em V\hskip1ex Z}\copy1\par
\message{DYNAMIC-FONTS-DONE}
\end