| 1 |
%% \font\pc=cmpica |
| 2 |
% This file is public domain. |
| 3 |
% Originally written 1988, Don Hosek. |
| 4 |
% This declaration added by Clea F. Rees 2008/11/14 with the permission of Dan Hosek. |
| 5 |
% |
| 6 |
% This is PICA.MF in text format, as of June 22, 1988. |
| 7 |
% adapted from {\tt roman.mf} |
| 8 |
% The Computer Modern Roman family of fonts (by D. E. Knuth, 1979--1985) |
| 9 |
|
| 10 |
font_coding_scheme:="Modified TeX typewriter text"; |
| 11 |
spanish_shriek=oct"016"; spanish_query=oct"017"; |
| 12 |
|
| 13 |
mode_setup; font_setup; |
| 14 |
|
| 15 |
input romanu; % upper case (majuscules) |
| 16 |
input romanl; % lower case (minuscules) |
| 17 |
input greeku; % upper case Greek letters |
| 18 |
input romand; % numerals |
| 19 |
input romanp; % ampersand, question marks, currency sign |
| 20 |
input romspl; % lowercase specials (dotless \i, ligature \ae, etc.) |
| 21 |
input romspu; % uppercase specials (\AE, \OE, \O) |
| 22 |
input pcpunct; % punctuation symbols adapted for pica |
| 23 |
input accent; % accents common to roman and italic text |
| 24 |
|
| 25 |
% Character codes \0013--\0015, \0074, and \0076 are generated when |ligs=1|; |
| 26 |
% in addition, codes \0040, \0042, \0055, \0134, \0137, and \0173--\0175 |
| 27 |
% are generated, if |ligs=0|. |
| 28 |
|
| 29 |
up_arrow=oct"013"; down_arrow=oct"014"; |
| 30 |
less=ASCII"<"; greater=ASCII">"; |
| 31 |
if ligs=0: straight_quotes=oct"042"; minus=ASCII"-"; |
| 32 |
backslash=ASCII"\"; underbar=ASCII"_"; |
| 33 |
left_brace=ASCII"{"; vertical=ASCII"|"; right_brace=ASCII"}"; fi |
| 34 |
|
| 35 |
input sym; |
| 36 |
|
| 37 |
cmchar "Straight single quote"; |
| 38 |
beginchar(oct"015",5u#,asc_height#,0); |
| 39 |
italcorr asc_height#*slant+.5 if serifs: flare# else: stem# fi -2u#; |
| 40 |
adjust_fit(0,0); |
| 41 |
x1=x2=.5w; y2=max(.5[bar_height,x_height]+.5vair,h-x_height); |
| 42 |
if serifs: pickup crisp.nib; pos1(flare,0); pos2(vair,0); |
| 43 |
y1+.5stem=h; filldraw circ_stroke z1e--z2e; % stem and bulb |
| 44 |
else: pickup fine.nib; pos1(stem,0); pos2(vair,0); |
| 45 |
top y1=h; filldraw stroke z1e--z2e; fi % stem |
| 46 |
penlabels(1,2); endchar; |
| 47 |
|
| 48 |
cmchar "Another hyphen"; |
| 49 |
beginarithchar(oct"040"); pickup rule.nib; |
| 50 |
lft x1=hround 1.5u-eps; x2=w-x1; y1=y2=math_axis; |
| 51 |
draw z1--z2; % bar |
| 52 |
labels(1,2); endchar; |
| 53 |
|
| 54 |
ligtable "-": "-" =: oct"040"; % this points to |"another hyphen"| so that |
| 55 |
% {\tt---} will be typeset as {\pc---} |
| 56 |
ligtable "`": "`" =: oct"042"; % {\tt``} and {\tt''} should become {\pc``} |
| 57 |
ligtable "'": "'" =: oct"042"; % and {\pc''} |
| 58 |
ligtable "!": "`" =: spanish_shriek; |
| 59 |
ligtable "?": "`" =: spanish_query; |
| 60 |
font_slant slant; font_x_height x_height#; |
| 61 |
font_normal_space 9u#; |
| 62 |
font_normal_stretch 4u#; |
| 63 |
font_quad 18u#; |
| 64 |
font_extra_space 9u#; |
| 65 |
bye. |