| 1 |
% This file can be loaded after PLAIN.MF. |
| 2 |
% It introduces conventions that are commonly used at WAITS. |
| 3 |
base_version:=base_version&"/WAITS"; |
| 4 |
|
| 5 |
% The WAITS implementation allows an extended character set; |
| 6 |
% characters :=, <=, <>, and >= are put into the class with <, =, >, :, and |; |
| 7 |
% character ^^L (form feed) is in a class by itself, and is like an "outer" \. |
| 8 |
% Files containing these special characters should not be expected to work |
| 9 |
% elsewhere unless the following replacements are made: |
| 10 |
let <= = <=; |
| 11 |
let <> = <>; |
| 12 |
let >= = >=; |
| 13 |
let := = :=; |
| 14 |
|
| 15 |
% Say "boise_proof" on the command line, to get proofmode on boise |
| 16 |
def boise_proof = lcode_:=" /"; |
| 17 |
extra_setup:=extra_setup&"grayfont grbois;" enddef; |
| 18 |
|
| 19 |
screen_rows:=400; screen_cols:=480; |
| 20 |
|
| 21 |
% Here are conventions for local output devices: |
| 22 |
|
| 23 |
mode_def dover = % dover mode: for the Xerox Dover |
| 24 |
proofing:=0; % no, we're not making proofs |
| 25 |
fontmaking:=1; % yes, we are making a font |
| 26 |
tracingtitles:=0; % no, don't show titles in the log |
| 27 |
pixels_per_inch:=384; |
| 28 |
blacker:=1.2; % make pens somewhat blacker |
| 29 |
fillin:=0; % no compensation for fillin |
| 30 |
o_correction:=.6; % but don't overshoot as much |
| 31 |
enddef; |
| 32 |
|
| 33 |
mode_def imagen = % imagen mode: for the Imagen 8/300 (Canon engine) |
| 34 |
proofing:=0; % no, we're not making proofs |
| 35 |
fontmaking:=1; % yes, we are making a font |
| 36 |
tracingtitles:=0; % no, don't show titles in the log |
| 37 |
pixels_per_inch:=300; |
| 38 |
blacker:=0; % Canon engine is black enough |
| 39 |
fillin:=.2; % and it tends to fill in diagonals |
| 40 |
o_correction:=.6; % |
| 41 |
enddef; |
| 42 |
|
| 43 |
mode_def qms = % qms mode: for the QMS (Xerox engine) |
| 44 |
proofing:=0; % no, we're not making proofs |
| 45 |
fontmaking:=1; % yes, we are making a font |
| 46 |
tracingtitles:=0; % no, don't show titles in the log |
| 47 |
pixels_per_inch:=300; |
| 48 |
blacker:=.75; % (this value is conjectural) |
| 49 |
fillin:=0; % (ditto) |
| 50 |
o_correction:=.5; % (ditto) |
| 51 |
enddef; |
| 52 |
|
| 53 |
mode_def aps = % aps mode: for the Autologic APS-Micro5 |
| 54 |
proofing:=0; % no, we're not making proofs |
| 55 |
fontmaking:=1; % yes, we are making a font |
| 56 |
tracingtitles:=1; % yes, show titles online |
| 57 |
pixels_per_inch:=722.909; % that's roughly 10 per pt |
| 58 |
blacker:=.2; % make pens a teeny bit blacker |
| 59 |
fillin:=.2; % but compensate for diagonal fillin |
| 60 |
o_correction:=1; % and keep the full overshoot |
| 61 |
enddef; |
| 62 |
|
| 63 |
mode_def crs = % crs mode: for the Alphatype CRS |
| 64 |
proofing:=0; % no, we're not making proofs |
| 65 |
fontmaking:=1; % yes, we are making a font |
| 66 |
tracingtitles:=1; % yes, show titles online |
| 67 |
begingroup interim warningcheck:=0; % (we need to go past 4096) |
| 68 |
pixels_per_inch:=4000+4000/3 endgroup; % HIGH res |
| 69 |
blacker:=4; % make pens a lot blacker |
| 70 |
fillin:=0; % but don't compensate for fillin |
| 71 |
o_correction:=1; % and keep the full overshoot |
| 72 |
enddef; |
| 73 |
|
| 74 |
mode_def boise = % boise mode: for the HP 2680A |
| 75 |
proofing:=0; % no, we're not making proofs |
| 76 |
fontmaking:=1; % yes, we are making a font |
| 77 |
tracingtitles:=0; % no, don't show titles in the log |
| 78 |
pixels_per_inch:=180; |
| 79 |
blacker:=.55; % make pens a bit blacker |
| 80 |
fillin:=.1; % and compensate for diagonal fillin |
| 81 |
o_correction:=.3; % but don't overshoot much |
| 82 |
enddef; |
| 83 |
|
| 84 |
mode_def DD = % DD mode: for the DataDisc (usually with mag=magstep 2=1.44) |
| 85 |
proofing:=0; % no, we're not making proofs |
| 86 |
fontmaking:=1; % yes, we are making a font |
| 87 |
tracingtitles:=0; % no, don't show titles in the log |
| 88 |
pixels_per_inch:=70; % really lowres |
| 89 |
blacker:=0; % don't make the pens any blacker |
| 90 |
fillin:=0; % and don't compensate for fillin |
| 91 |
o_correction:=.2; % but suppress most overshoots |
| 92 |
enddef; |
| 93 |
|
| 94 |
mode_def canon = % canon mode: for the old Imagen (Canon LBP10) |
| 95 |
proofing:=0; % no, we're not making proofs |
| 96 |
fontmaking:=1; % yes, we are making a font |
| 97 |
tracingtitles:=0; % no, don't show titles in the log |
| 98 |
pixels_per_inch:=240; |
| 99 |
blacker:=.2; % make pens a wee bit blacker |
| 100 |
fillin:=.2; % and compensate for fillin |
| 101 |
o_correction:=.4; % but don't overshoot as much |
| 102 |
enddef; |
| 103 |
|
| 104 |
mode_def newDD = % newDD mode: for DataDisc with special aspect ratio |
| 105 |
proofing:=0; % no, we're not making proofs |
| 106 |
fontmaking:=1; % yes, we are making a font |
| 107 |
tracingtitles:=0; % no, don't show titles in the log |
| 108 |
pixels_per_inch:=70; % really lowres |
| 109 |
blacker:=0; % don't make the pens any blacker |
| 110 |
fillin:=0; % and don't compensate for fillin |
| 111 |
o_correction:=.2; % but suppress most overshoots |
| 112 |
aspect_ratio:=4/3; % this is the new feature... |
| 113 |
enddef; |
| 114 |
|
| 115 |
mode_def cg = % cg mode: for the Compugraphic 8600 |
| 116 |
proofing:=0; % no, we're not making proofs |
| 117 |
fontmaking:=1; % yes, we are making a font |
| 118 |
tracingtitles:=1; % yes, show titles online |
| 119 |
pixels_per_inch:=1301.5; % a bit less than 20 per pt |
| 120 |
blacker:=.2; % make pens a teeny bit blacker |
| 121 |
fillin:=.2; % but compensate for diagonal fillin |
| 122 |
o_correction:=1; % and keep the full overshoot |
| 123 |
aspect_ratio:=1569/1301.5; % strange, no? |
| 124 |
enddef; |
| 125 |
|
| 126 |
mode_def epson = % Epson |
| 127 |
proofing:=0; % no, we're not making proofs |
| 128 |
fontmaking:=1; % yes, we are making a font |
| 129 |
tracingtitles:=0; % no, don't show titles in the log |
| 130 |
pixels_per_inch:=240; % lowres |
| 131 |
blacker:=0; % don't make the pens any blacker |
| 132 |
fillin:=0; % and don't compensate for fillin |
| 133 |
o_correction:=.2; % but suppress most overshoots |
| 134 |
aspect_ratio:=9/10; % 216 dots/inch vertical |
| 135 |
enddef; |
| 136 |
|
| 137 |
|
| 138 |
localfont:=imagen; |
| 139 |
|
| 140 |
% Finally, here are macros for Xerox-world font info: |
| 141 |
|
| 142 |
def font_family expr s = % string s names the font family, e.g., "CMR" |
| 143 |
headerbyte 49: BCPL_string(s,20); |
| 144 |
special "identifier "&s enddef; |
| 145 |
def coding_scheme expr s = % string s names the scheme, e.g. "TEX TEXT" |
| 146 |
headerbyte 9: BCPL_string(s,40); |
| 147 |
special "codingscheme "&s enddef; |
| 148 |
def font_face_byte expr x = % integer x gives the family member number, |
| 149 |
headerbyte 72: x; % which should be between 0 and 255 |
| 150 |
special "fontfacebyte"; numspecial x enddef; |
| 151 |
|
| 152 |
def BCPL_string(expr s,n)= % string s becomes an n-byte BCPL string |
| 153 |
for l:=if length(s)>=n: n-1 else: length(s) fi: l |
| 154 |
for k:=1 upto l: , substring (k-1,k) of s endfor |
| 155 |
for k:=l+2 upto n: , 0 endfor endfor enddef; |
| 156 |
|
| 157 |
Xerox_world:=1; % users can say `if known Xerox_world:...fi' |
| 158 |
|
| 159 |
inner end; |
| 160 |
def bye= |
| 161 |
if fontmaking>0: font_family font_identifier_; |
| 162 |
coding_scheme font_coding_scheme_; |
| 163 |
font_face_byte max(0,254-round 2designsize); fi |
| 164 |
tracingstats:=1; % at least for now we want this |
| 165 |
end |
| 166 |
enddef; |
| 167 |
|
| 168 |
outer bye,end; |