summaryrefslogtreecommitdiff
path: root/dviware/psprint/unix/psfonts.tex
blob: 11e55aec2a01722aac183c786254c8445d336fe1 (plain)
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
% This TeX source file illustrates the use (and abuse) of PostScript fonts.

\input pstext   % defines \PStext and \CMtext

\nopagenumbers
\parindent=0pt
\parskip=\bigskipamount

The following fonts should be available in all PostScript printers:

\font\courb=ps-courier-b at 10pt
\font\courbo=ps-courier-bo at 10pt
\font\couro=ps-courier-o at 10pt
\font\cour=ps-courier at 10pt
\font\helvb=ps-helv-b at 10pt
\font\helvbo=ps-helv-bo at 10pt
\font\helvo=ps-helv-o at 10pt
\font\helv=ps-helv at 10pt
\font\tb=ps-times-b at 10pt
\font\tbi=ps-times-bi at 10pt
\font\ti=ps-times-i at 10pt
\font\ts=ps-times-s at 10pt
\font\tr=ps-times-r at 10pt
\font\sy=ps-symbol at 10pt

\bigskip
\leftline{\courb Courier-Bold}
\leftline{\courbo Courier-BoldOblique}
\leftline{\couro Courier-Oblique}
\leftline{\cour Courier}
\leftline{\helvb Helvetica-Bold}
\leftline{\helvbo Helvetica-BoldOblique}
\leftline{\helvo Helvetica-Oblique}
\leftline{\helv Helvetica}
\leftline{\tb Times-Bold}
\leftline{\tbi Times-BoldItalic}
\leftline{\ti Times-Italic}
\leftline{\ts Times-Slanted}
\leftline{\tr Times-Roman}
\leftline{\sy Symbol \rm (Symbol)}

A PostScript font can be used at any desired size:

\font\trA=ps-times-r at 12pt
\font\trB=ps-times-r at 20pt
\font\trC=ps-times-r at 34.5pt

\bigskip
\leftline{\tr Times-Roman at 10pt}
\leftline{\trA Times-Roman at 12pt}
\leftline{\trB Times-Roman at 20pt}
\leftline{\trC Times-Roman at 34.5pt}

\def\sometext
{\'o \`o \^o \"o \~o \=o \.o \u o \v o \H o \t oo \c o \d o \b o
\oe\ \OE\ \ae\ \AE\ \aa\ \AA\ \o\ \O\ \l\ \L\ \ss\ \i\ \j}

\rm
Standard \TeX\ accents and foreign letters:
\sometext

PostScript accents and foreign letters:
\PStext \tr \sometext \CMtext     % \t \aa \AA \j will generate error messages

\rm
A PostScript font usually appears {\tr darker and larger} than
an ``equivalent'' Computer Modern font.

\bye