Debian Codegraph @

texmf-dist/fonts/source/public/modes/modes.mf

raw
1 % {\tt\catcode`\$=12 $Id: modes.mf,v 1.32 2026/01/03 18:54:07 karl Exp $ }
2 %%\font\tenlogosl=logosl10
3 %%\def\logofont{\ifdim\fontdimen1\font>0pt \tenlogosl\else\tenlogo\fi}
4 %%\def\MF{{\logofont META}\-{\logofont FONT}}
5 %%\def\9{${\rm\%}}% print initial comments ragged right
6 %%\let\origunderscore=\_ % use character from tt font:
7 %%\def\_{\ifdim\fontdimen3\font=0pt \char`\_\else\origunderscore\fi}
8 %%\vbadness=10000 % all-code-example page
9 %%%%
10 %%% input generate
11 %%% def mode_def
12 %%% end bye primitive_end_
13 %%% addto define_whole_vertical_blacker_pixels %%%% missing in plain.mft
14 %%% addto coding_scheme font_face_byte font_family %%%% like font_size
15 %%% addto BCPL_string mode_param mode_special_ mode_output_specials_
16 %%% true mode_common_setup_ mode_write_white_setup_ %%%% like mode_setup
17 %%% true mode_include_extra_info
18 %%% true landscape landscape_
19 %%% good mode_guard_ %%%% variable that take suffixes
20 %%%%
21 %
22 % Compiled 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2002, 2004,
23 % 2005, 2008, 2020 by Karl Berry. This file is not copyrighted and may
24 % be used freely. You can retrieve the latest version from {\tt
25 % https://ctan.org/pkg/modes}, among other places.
26 %
27 % For bug reports, discussion, or to submit a new |mode_def|, please
28 % send it to {\tt [email protected]} (explanations below).
29 %
30 % For general discussion about \MF, the mailing list {\tt
31 % [email protected]} is a good place.
32 %
33 % Feel free to change the definitions of |localfont|, |screen_cols|,
34 % and |screen_rows| at the end of file (see explanations below).
35 %
36 % The mode definitions start at `Here are the modes', several hundred
37 % lines down. The companion files {\tt modelist.txt} and {\tt
38 % modenames.txt} list the modes one per line, with and without comments.
39 %
40 % A common use for modes nowadays is to make high-resolution bitmaps from
41 % \MF-only fonts to include in PDF output or for autotracing. The
42 % |dpdfezzz| mode is an 8000$\,$dpi mode with canonical parameter values,
43 % intended for this purpose. (Running {\tt dvips -Ppdf} will use this.)
44 % If you want a lower resolution, similar canonical modes are |supre|
45 % at 2400$\,$dpi and |ultre| at 1200$\,$dpi.
46 %
47 % This file can be run through {\tt mft} and \TeX\ to produce a nice
48 % pretty-printed listing; the resulting {\tt modes.pdf} file is included
49 % in the distribution.
50 %
51 %%\begingroup \tt \catcode`\{=12 \catcode`\}=12 \obeyspaces
52 % @mffile{
53 % author = "The Metafont community",
54 % version = "4.4",
55 % date = "Sat Jan 3 10:55:17 PST 2026"
56 % filename = "modes.mf",
57 % email = "[email protected]"
58 % checksum = "2675 13398 98050",
59 % codetable = "ISO/ASCII",
60 % supported = "yes",
61 % docstring = "
62 %%\endgroup
63 %
64 % This file is a collection of putatively all extant \MF\ modes.
65 %
66 % If you have a device which is not mentioned in this file, the best
67 % thing to do is try to find a device with similar resolution (search
68 % for the appropriate lines), and see if that suits (a list of fonts to
69 % try is given above). Otherwise, methods for fiddling with the
70 % parameters are described in detail below.
71 %
72 % Unfortunately, the number of modes eats up a lot of memory; if your
73 % \MF\ has not increased the table sizes, you may need to remove
74 % some of the modes from this file (please rename it to something else then,
75 % e.g., {\tt local.mf}). If you can suggest a way to redefine |mode_def|
76 % and/or |mode_setup|, even better; right now, the amount of memory
77 % used is approximately four times the length of the |mode_def| names.
78 %
79 % The primary names are strictly lowercase. This makes it feasible to use
80 % them for portable directory names, and the \TeX\ Directory Structure
81 % standard recommends doing so. The synonyms are historical equivalents.
82 %
83 % It also makes definitions to put specials identifying the mode in
84 % the \MF\ GF output, and to put the coding scheme and
85 % other so-called Xerox-world information in the TFM output. This can
86 % be made to happen by calling |mode_include_extra_info|.
87 %
88 % It also defines a macro |landscape| that inverts |aspect_ratio| and
89 % changes |pixels_per_inch|, so you can say {\tt mode := whatever;
90 % landscape; ...} to get landscape fonts. But I can't think of any
91 % reasonable way to reflect the |landscape| in the directory name, so
92 % there are also |mode_def|'s for the devices with non-square aspect
93 % ratios in landscape mode.
94 %
95 % Finally, it has some code to handle write-white devices better; this
96 % code comes into play if a |mode_def| includes the statement
97 % |mode_write_white_setup_;|. Such |mode_def|s should also define
98 % |blacker_min|. For further discussion of write/white and white/black
99 % devices, see Pierre MacKay's article in the proceedings of the
100 % 1991 Raster Imaging and Digital Typography conference:
101 %
102 %%\begingroup \tt \catcode`\{=12 \catcode`\}=12 \obeyspaces
103 % @String{proc-RIDT91 = "Raster Imaging and Digital Typography II"}
104 % @String{pub-CUP = "Cambridge University Press"}
105 %
106 % @Inproceedings{Mackay:RIDT91-205,
107 % author = "Pierre A. MacKay",
108 % title = "Looking at the Pixels: Quality Control for 300 dpi
109 % Laser Printer Fonts, especially {\MF}s ",
110 % pages = "205--215",
111 % crossref = "Morris:RIDT91",
112 % }
113 %
114 % @Proceedings{Morris:RIDT91,
115 % title = proc-RIDT91,
116 % booktitle = proc-RIDT91,
117 % year = "1991",
118 % editor = "Robert A. Morris and Jacques Andr{\'e}",
119 % publisher = pub-CUP,
120 % address = pub-CUP:adr,
121 % acknowledgement = ack-kb,
122 % }
123 %%\endgroup
124 %
125 % This file is typically loaded when making a \MF\ base; \TeX\ Live does
126 % this by default, but to do it manually, for example, the command line
127 %%\begingroup \tt \obeyspaces
128 % inimf plain input modes dump
129 %%\endgroup
130 % makes a file {\tt plain.base} (or {\tt plain.bas}, or something like that)
131 % with all the modes herein defined (plain itself defines modes called
132 % |proof|\kern-.12em, |smoke|, and |lowres|.)
133 %
134 % You can make the Computer Modern base with the command line:
135 %%\begingroup \tt \obeyspaces
136 % inimf plain input modes input cmbase dump
137 %%\endgroup
138 % It's generally best to avoid doing this, since it's
139 % easy to forget to update them. Just using {\tt plain.base} is simplest.
140 %
141 % On Unix systems, you then install the base file in the system directory
142 % as {\tt mf.base}. \MF\ uses the name it was invoked as to determine
143 % the format or base file to read; thus running {\tt mf} reads {\tt
144 % mf.base}, running {\tt cmmf} reads {\tt cmmf.base}, and so on. {\tt
145 % plain.base} and {\tt mf.base} should be the same file (either a hard
146 % or soft link is ok), so the examples in {\sl The \MF book\/} work.
147 %
148 % A user selects a particular mode when running \MF
149 % by assigning to the variable |mode|. For example:
150 %%\begingroup \tt \obeyspaces
151 % mf \char`\\mode:=cx; input cmr10
152 %%\endgroup
153 % sets up values appropriate for the CanonCX engine.
154 %
155 % If no mode is assigned, the default is |proof| mode, as stated in {\sl
156 % The \MF book}. This is the cause of the ``{\tt .2602gf}'' files which
157 % are the subject of periodic questions. The remedy is simply to assign
158 % a different mode---|localfont|, for example.
159 %
160 % Every site should define the mode |localfont| to be a synonym for the
161 % mode most commonly used. This file defines |localfont| to be |ljfour|.
162 % The values for |screen_rows| and |screen_cols|, which determine how big
163 % \MF's window for online output is, should perhaps also be
164 % changed; certainly individual users should change them to their
165 % own tastes.
166 %
167 % This file defines {\tt ?} to type out a list of all the known
168 % |mode_def|s (once only).
169 %
170 % Technically, a |mode_def| is a \MF\ definition that typically
171 % consists of a series of assignments to various device-specific variables,
172 % either primitive or defined in plain. These variables include the
173 % following (page numbers refer to {\sl The \MF book\/}:
174 %
175 % |aspect_ratio|: the ratio of the vertical resolution to the horizontal
176 % resolution (page 94).
177 %
178 % |blacker|: a correction added to the width of stems and similar
179 % features, to account for devices which would otherwise make them
180 % too light (page 93). (Write-white devices are best handled by a more
181 % sophisticated method than merely adding to |blacker|, as explained
182 % above.) Compare your results with a good high-resolution example,
183 % such as one of the volumes of {\sl Computers \& Typesetting}.
184 % If you compare against the output of a typical write-black 300$\,$dpi
185 % engine, you will almost certainly wind up with something too dark.
186 % |blacker| should never be negative, the EC fonts do not compile with
187 % such a value.
188 %
189 % |fillin|: a correction factor for diagonals and other features which
190 % would otherwise be ``filled in'' (page 94). An ideal device would
191 % have |fillin=0| (page 94). Negative values for |fillin| typically
192 % have either gross effects or none at all, and should be avoided.
193 % Positive values lighten a diagonal line, negative values darken it.
194 % Changes in the |fillin| value tend to have abruptly non-linear effects
195 % on the various design-sizes and magnifications of a typeface.
196 %
197 % |fontmaking|: if nonzero at the end of the job, \MF\ writes
198 % a TFM file (page 315).
199 %
200 % |o_correction|: a correction factor for the ``overshoot'' of curves
201 % beyond the baseline or x-height. High resolution curves look better
202 % with overshoot, so such devices should have |o_correction=1|; but
203 % at low resolutions, the overshoot appears to simply be a distortion
204 % (page 93). Here some additional comments about |o_correction|,
205 % courtesy of Pierre MacKay (edited by Karl):
206 %
207 % At present, I find that |o_correction| works nicely at 80 pixels per
208 % em, and gets increasingly disturbing as you move down towards 50
209 % pixels per em. Below that I do not think it ought to happen at all.
210 %
211 % The problem, of course, is that full |o_correction| is supposed to
212 % occur only at the zenith and nadir of the curve of `o', which is
213 % a small region at high resolution, but may be a long line of
214 % horizontal pixels at medium resolution. The full |o_correction|
215 % does not change a 300$\,$dpi {\tt cmr10}, but it changes a 21-pixel
216 % high {\tt cmr12} to be 23 pixels high. The extra height and depth
217 % is seen along a line of seven pixels at the bottom and five at
218 % the top. This is a pronounced overshoot indeed.
219 %
220 % For high-resolution devices, such as phototypesetters, the values
221 % for |blacker|, |fillin|, and |o_correction| don't matter all that much,
222 % so long as the values are within their normal ranges: between
223 % 0 and 1, with the values approaching 0, 0, and 1 respectively.
224 %
225 % |pixels_per_inch|: the horizontal resolution; the \MF\ primitive
226 % |hppp| (which is what determines the extension on the GF filename,
227 % as among other things) is computed from this (page 94). (An ``inch''
228 % is 72.27$\,$pt in the \TeX\ world.)
229 %
230 % To be more precise, you can determine the resolution of a font given
231 % a |mode_def| and a magnification |m| by simply multiplying
232 % |pixels_per_inch| for that |mode_def| by |m|. (Your results may differ
233 % from \MF's if you don't use equivalent fixed-point arithmetic.)
234 % Then you can determine the number used in the name of the GF font
235 % output by rounding. For example, a font generated at |magstep(.5)|
236 % (which is $\sqrt{1.2}$, which \MF\ computes as 1.09544) for a printer
237 % with |pixels_per_inch=300| will have a resolution of 328.63312 dots
238 % per inch, and the GF filename will include the number {\tt 329}.
239 %
240 % |proofing|: says whether to put additional specials in the GF file for
241 % use in making proofsheets via, e.g., the utility program {\tt GFtoDVI}
242 % (page 323--4).
243 %
244 % |tracingtitles|: if nonzero, strings that appear as \MF\ statements
245 % are typed on the terminal (page 187).
246 %
247 % Pierre MacKay {\tt [email protected]} has a collection of Unix
248 % tools to make up a minifont of indicator characters to help in testing.
249 %
250 % Neenie Billawala's article in the April 1987 issue of {\sl TUGboat}
251 % describes how to test your printer for the best set of values for the
252 % magic numbers above. Here are some brief comments on the subject,
253 % courtesy of Rocky Bernstein and Paul Abrahams:
254 %
255 % For medium-to-low resolution devices, you can first set the |blacker|
256 % and |o_correction| to~0 and decide on a |fillin| value by looking at
257 % the diagonal of a lowercase `z' in {\tt cmtt10}, or various lines in
258 % LaTeX's {\tt line10} font. The diagonal should be the same thickness
259 % as the horizontal bars of the `z'. Then I decide on the |blacker|
260 % value, generally by checking the smaller fonts for too much filling
261 % in. Finally, you can set the |o_correction| using the guidelines
262 % suggested above.
263 %
264 % The easiest way to make a new |mode_def| is not by modifying this file
265 % and rebuilding your base file every time. Instead, use a separate file
266 % that contains the appropriate values for the mode parameters and read
267 % it in when running \MF. If you're using Dvips or another utility
268 % that calls {\tt MakeTeXPK} to make PK files, remember you'll have to call
269 % \MF\ explicitly to make fonts until you've rebuilt the base files.
270 %
271 % To use a separate mode file with \MF, use the following
272 % command line:
273 %%\begingroup \tt \obeyspaces
274 % mf \char`\\smode:="newmode.mf"; mag:=magstep (2.0); input cmr10
275 %%\endgroup
276 % substituting whatever font and magnification you wish, or omitting
277 % the magnification altogether.
278 %
279 % The file {\tt newmode.mf} should contain lines like this (with no
280 % |mode_def| or |enddef|):
281 %%\begingroup \tt \catcode`\_=12 \obeyspaces
282 % mode_param (pixels_per_inch, 100);
283 % mode_param (blacker, 0);
284 % mode_param (fillin, 0);
285 % mode_param (o_correction, 1);
286 % mode_common_setup_;
287 %%\endgroup
288 % changing the values as appropriate, of course. Once you're satisfied
289 % with the parameters, use inimf as described below to rebuild and
290 % install the plain (and any other) base files.
291 %
292 % For more information on the use of |smode|, see page 269 of
293 % {\sl The \MF book}.
294 %
295 % Matt Swift has contributed a short \TeX\ file to help in testing new
296 % modes. Remember to remove a leading |"%% "| from each line after
297 % extracting it. (Only a single \% is shown in the printed version.)
298 % If you don't use this file for testing, please mention what fonts
299 % at what sizes you tested your new mode on. This will help other
300 % people wondering where particular values came from. Ideally,
301 % you would try normal, bold, and italic variants, at sizes around
302 % 5$\,$pt, 10$\,$pt and 15$\,$pt.
303 %
304 %%%% It seems too difficult to get the verbatim stuff right with MFT alone,
305 %%%% so why not quote the lines with `%%' and leave the processing to TeX?
306 %%%% The only drawback is that comment lines have to start with a blank,
307 %%%% since we have two stop MFT from interpreting them as `%%%' comments.
308 %%%% Therefore it seems best to quote every line with `%% ' consistently
309 %%%% to make it easier to extract them.
310 %%%%
311 %%%% This verbatim mode is from webman.tex, it assumes that no `?' appears
312 %%%% in the text being copied. I've hacked it to insert a single `%' at
313 %%%% the start of each line, so that it looks like normal MFT comments.
314 %%%%
315 %%\def\verbatim{\begingroup \def\9{{\rm\%}}
316 %% \def\do##1{\catcode`##1=12 } \dospecials
317 %% \parskip 0pt \parindent 0pt
318 %% \catcode`\ =13 \catcode`\^^M=13
319 %% \tt \catcode`\?=0 \verbatimdefs \verbatimgobble}
320 %%{\catcode`\^^M=13{\catcode`\ =13\gdef\verbatimdefs{\def^^M{\ \par\9}\let =\ }} %
321 %% \gdef\verbatimgobble#1^^M{\9}}
322 %%%%
323 %%\verbatim
324 %% % modetest.tex -- a file to test a METAFONT mode
325 %% %
326 %% % by Matt Swift <[email protected]>
327 %% %
328 %% % This file is in the public domain.
329 %% %
330 %% % \def\fileversion{v1.2}
331 %% % \def\filedate{1995/12/31}
332 %% %
333 %% % This LaTeX 2e file generates a test page useful for finding a good
334 %% % METAFONT mode for your printer. It includes the most sensitive
335 %% % letters in three sizes and all standard CMR font shapes.
336 %% %
337 %% % I've made the macros abstract, and I think this file could easily
338 %% % be adapted to test modes for other METAFONT fonts, or simply font
339 %% % appearance in general.
340 %% %
341 %% % If you want to adapt this to a non-LaTeX format, the LaTeX-specific
342 %% % commands below that must be altered are \documentclass,
343 %% % \begin{document}, \end{document}, \makeatletter, \makeatother,
344 %% % \@for, \@setfontsize, \encodingdefault, \pagestyle, \normalfont,
345 %% % \rmfamily, \sffamily, \ttfamily, \mdseries, \bfseries, \upshape,
346 %% % \itshape, \scshape, and \slshape.
347 %%
348 %% \def\encodingdefault{T1} % New "Cork" font encoding (dc fonts).
349 %% \def\encodingdefault{OT1} % Old font encoding (cm fonts).
350 %%
351 %% \documentclass{article}
352 %% \begin{document}
353 %%
354 %% % This line can be replaced (by, e.g., sed) to contain a mode name.
355 %%
356 %% ::Mode::
357 %%
358 %% \def\makesize#1#2#3{
359 %% \expandafter\def\csname ptsize#1\endcsname{#2}
360 %% \expandafter\def\csname blsize#1\endcsname{#3}
361 %% }
362 %%
363 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
364 %% % DEFINE HERE THE POINT SIZES with baselineskips you would like to test. %
365 %% % With the defaults of 5, 10, and 14 point sizes, everything will fit on %
366 %% % one page very easily. Twocolumn would allow several more sizes. %
367 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
368 %%
369 %% \makesize {A}{5}{6}
370 %% \makesize {B}{10}{12}
371 %% \makesize {C}{14}{18}
372 %%
373 %% \def\sizelist{A,B,C}
374 %%
375 %% \def\letters{%
376 %% MoOzZffii-a\"egsS [/$\backslash$\par
377 %% }
378 %%
379 %% \makeatletter
380 %% \let\setfontsize\@setfontsize
381 %% \let\for\@for
382 %% \parindent\z@
383 %% \makeatother
384 %%
385 %% \pagestyle{empty}
386 %%
387 %% \def\showfonts{%
388 %% %
389 %% % The groups prevent warnings when intermediate fonts are not available.
390 %% %
391 %% {\rmfamily \mdseries \upshape \letters} % allow no space before this
392 %% {\rmfamily \mdseries \slshape \letters}
393 %% {\rmfamily \mdseries \itshape \letters}
394 %% {\rmfamily \mdseries \scshape \letters}
395 %%
396 %% {\rmfamily \bfseries \upshape \letters}
397 %% {\rmfamily \bfseries \slshape \letters}
398 %% {\rmfamily \bfseries \itshape \letters}
399 %%
400 %% {\sffamily \mdseries \upshape \letters}
401 %% {\sffamily \mdseries \slshape \letters}
402 %%
403 %% {\sffamily \bfseries \upshape \letters}
404 %%
405 %% {\ttfamily \mdseries \upshape \letters}
406 %% {\ttfamily \mdseries \slshape \letters}
407 %% {\ttfamily \mdseries \itshape \letters}
408 %% {\ttfamily \mdseries \scshape \letters}
409 %% }
410 %%
411 %% % The \expandafters expand \sizelist.
412 %% %
413 %% \expandafter \for
414 %% \expandafter \sizename
415 %% \expandafter :%
416 %% \expandafter =%
417 %% \sizelist
418 %% \do {\setfontsize {\sizename}
419 %% {\csname ptsize\sizename\endcsname}
420 %% {\csname blsize\sizename\endcsname}%
421 %% \vskip 1ex\noindent
422 %% \llap{\normalfont\csname ptsize\sizename \endcsname\,pt\quad}%
423 %% \showfonts}
424 %%
425 %% \end{document}
426 %% % end of modetest.tex
427 %%?endgroup\par
428 %%%%
429 %%%% Not that anyone would recognize this as the end of the docstring...
430 %%\begingroup \tt \catcode`\{=12 \catcode`\}=12 \obeyspaces
431 %"
432 % }
433 %%\endgroup
434
435 % Don't let ourselves be processed twice.
436 if known modes_mf: endinput; fi;
437 modes_mf := 4.4;
438
439 % Identify ourselves in the format file.
440 base_version := base_version & "/modes 4.4";
441
442 % Here are useful macros (also called definitions) we use throughout.
443
444 % First, some comments about how the |mode_defs| are constructed (from
445 % {\tt [email protected]}). In the past, |mode_defs| unconditionally
446 % assigned a value to the various mode-dependent parameters.
447 % For example, they contained an assignment |fontmaking:=1|, which
448 % tells \MF\ to write a TFM file.
449 %
450 % But suppose you want to generate a font using all of the setup for
451 % some mode |m|, but do not want to generate a TFM? One could create
452 % another mode that doesn't have the assignment, but this seems a bit
453 % wasteful since the rest of the code in the mode would be duplicated.
454 % Furthermore, given the way the mode definitions were written, it was
455 % not possible to change the mode parameters. To see why, I review how
456 % a \MF\ run typically works.
457 %
458 % First, \MF\ is invoked with some base file to load. Then you might
459 % want give additional instructions, such as |scrollmode|, or |mode:=cx|.
460 % Next, you input a parameter file, say {\tt cmr10}. The parameter file
461 % calls a driver file such as {\tt roman.mf} with the command
462 % |generate roman |. Finally, the driver finishes with |bye| or |end|.
463 % Thus, any additional commands you give after the input of the
464 % parameter file are ignored.
465 %
466 % Usually, one of the first things a driver file does is to call
467 % |mode_setup|. It is here that the mode parameters are set. (In our
468 % hypothetical mode, it would be here that |fontmaking| is assigned.)
469 %
470 % To allow a flexible setting of |fontmaking|, we can make a simple
471 % change: in the |mode_def|, first test to see if a value has been
472 % defined prior and only make the assignment if not. That is:
473 % |if unknown fontmaking: fontmaking := 1; fi|.
474 %
475 % Alas, this doesn't work. Primitives, like |fontmaking|, are always
476 % |known|. So instead we create ``guard'' variables, specifically,
477 % |mode_guard_.fontmaking|; we set the guard when we assign the
478 % parameter. Then we test whether the guard is |known| before we
479 % actually do an assignment. This allows more flexible definitions: you
480 % can specify some of the parameters, and keep the defaults for others.
481 %
482 % It is also possible to write a program that creates a |mode_def|
483 % on the fly. Although useful, this has a slightly different focus
484 % than starting with an existing |mode_def| and changing a couple
485 % of parameters. In particular, one still has to peek inside the
486 % file to see what the old values were and set them again (in the
487 % new context). Also, such on-the-fly |mode_def| generation programs
488 % are inherently less machine-independent than a scheme that does
489 % everything in \MF\ itself.
490 %
491 % The upshot of all this is the following: we say, e.g.,
492 % |mode_param (fontmaking, 1)| below, instead of using the assignment
493 % primitive directly. The name (``|mode_param|'') is kept somewhat
494 % short because you can also use this to override a mode assignment
495 % on the command line or in response to the {\tt **} prompt.
496
497 def mode_param (suffix v) (expr e) =
498 if unknown mode_guard_.v:
499 v := e;
500 mode_guard_.v := 1;
501 fi
502 enddef;
503
504 % This macro is invoked by all the modes, after |pixels_per_inch|
505 % has been defined, thus saving some space and time.
506 def mode_common_setup_ =
507 mode_param (proofing, 0);
508 mode_param (fontmaking, 1);
509 mode_param (tracingtitles, if pixels_per_inch > 1200: 1 else: 0 fi);
510 enddef;
511
512
513 % In a similar spirit, here are definitions to change to ``landscape''
514 % mode. You just say {\tt mode := whatever; landscape; ...},
515 % and when |mode_setup| is executed, the |aspect_ratio| will be
516 % inverted, and |pixels_per_inch| changed.
517 def landscape =
518 extra_setup := extra_setup & "landscape_;"
519 enddef;
520
521 def landscape_ =
522 begingroup
523 interim warningcheck := 0;
524 pixels_per_inch := aspect_ratio * pixels_per_inch;
525 aspect_ratio := 1 / aspect_ratio;
526 fix_units; % Too bad we can't do this after any |extra_setup|.
527 endgroup
528 enddef;
529
530
531 % Here are macros to add specials with mode information to the GF file.
532 %
533 % Specifically, we add the |pixels_per_inch|, |o_correction|,
534 % |aspect_ratio| (if not 1), |mag|, |fillin|, and |mode_def| name. This
535 % information can be used to automatically verify that a font file name
536 % matches the specification within the file. For example, you could
537 % check that the number in the filename matches |mag*pixels_per_inch|.
538 % Or, if the |mode_def| name is part of the font directory path
539 % (e.g., you put fonts in {\tt .../texmf/fonts/pk/cx}), that all of the
540 % bitmap files in the directory have the expected |mode_def| name.
541 def mode_special_ (suffix $) =
542 string s, d;
543 s := str $;
544 d := decimal scantokens s;
545 special s & "=" & d;
546 enddef;
547
548 def mode_output_specials_ =
549 begingroup
550 save d, s, p, p_p_i;
551 string p;
552
553 interim warningcheck := 0; % In case |pixels_per_inch>4096|.
554
555 % We need the old |pixels_per_inch| to compute
556 % the true device resolution.
557 p_p_i = pixels_per_inch / mag;
558
559 % But now we want to change |pixels_per_inch|,
560 % so |save| the old value.
561 save pixels_per_inch;
562 pixels_per_inch := p_p_i;
563
564 special "jobname=" & jobname;
565 mode_special_ (mag);
566
567 p := if string mode:
568 mode
569 else:
570 substring (0, length (mode_name[mode]) - 1) of mode_name[mode]
571 fi;
572 special "mode=" & p;
573
574 mode_special_ (pixels_per_inch);
575 if aspect_ratio <> 1:
576 mode_special_ (aspect_ratio);
577 fi;
578 mode_special_ (blacker);
579 mode_special_ (fillin);
580 mode_special_ (o_correction);
581 endgroup
582 enddef;
583
584
585 % Here are macros for Xerox-world font info, which can be useful even
586 % if you never use a Xerox printer. For instance, {\tt crudetype} uses
587 % the |coding_scheme| and it is nice to have the font family on record.
588 % This goes into both the TFM file (as |headerbyte| information), and
589 % into the GF file (as a |special|).
590
591 % Make the string |s| be |n| bytes long.
592 def BCPL_string (expr s, n) =
593 for l := if length (s) >= n: n-1 else: length (s) fi: l
594 for k := 1 upto l: , substring (k - 1, k) of s endfor
595 for k := l + 2 upto n: , 0 endfor
596 endfor
597 enddef;
598
599 % The string |s| names the encoding scheme, e.g., {\tt TeX text}.
600 def coding_scheme expr s =
601 headerbyte 9: BCPL_string (s, 40);
602 special "codingscheme=" & s
603 enddef;
604
605 % The string |s| names the font family, e.g., {\tt CMR}.
606 def font_family expr s =
607 headerbyte 49: BCPL_string (s, 20);
608 special "fontid=" & s
609 enddef;
610
611 % The integer |x| gives the family member number, which should be
612 % between 0 and 255.
613 def font_face_byte expr x =
614 headerbyte 72: x;
615 special "fontfacebyte";
616 numspecial x
617 enddef;
618
619 % So users can say |if known Xerox_world: ... fi|, per {\sl The \MF book}.
620 Xerox_world := 1;
621
622 % For users who want extra information in the output file.
623 % This used to be done automatically by redefining end, but DEK reported
624 % that as a serious bug on 19 February 2008 to tex-implementors.
625 %
626 def mode_extra_info =
627 if fontmaking > 0:
628 font_family font_identifier_;
629 coding_scheme font_coding_scheme_;
630 font_face_byte max (0, 254 - round 2designsize);
631 mode_output_specials_;
632 fi;
633 enddef;
634
635 % This macro |mode_include_extra_info| will insert the above extra
636 % information, most importantly the |coding_scheme|, upon |end|.
637 % This is called from the {\tt mktextfm} and {\tt mktexpk} scripts if
638 % the environment variable {\tt MF\_MODE\_EXTRA\_INFO} is set; the {\tt
639 % mftrace} program ({\tt https://ctan.org/pkg/mftrace}) can use this.
640 %
641 % We need to redefine |end| in the macro to output the information, so
642 % save the primitive meaning. And we must make both |end| and |bye|
643 % |inner| tokens, so we can define them in the macro.
644 %
645 let original_end_ = end;
646 inner end, bye;
647 %
648 def mode_include_extra_info =
649 def end =
650 mode_extra_info;
651 original_end_;
652 enddef;
653
654 % {\sl The \MF book} gives |bye| two different definitions (on pages\]
655 % 278 and 321). The first is used in {\tt plain.mf} and is merely\]
656 % a synoynym for the primitive |end|. The second, which is not part\]
657 % of {\tt plain.mf}, is similar to the code given above. We want the\]
658 % extra information to get into the output files regardless of whether\]
659 % the \MF\ source used |end| or |bye|. We just changed |end|;\]
660 % now we have to redefine |bye| again (as on page 278).\]
661 let bye = end;
662 enddef;
663
664 % This is tested in {\tt mktextfm} with |known| to see if it is ok to\]
665 % call |mode_include_extra_info|, since there is apparently no way to test\]
666 % whether a macro is defined, unlike \TeX.\]
667 boolean mode_include_extra_info_available;
668 mode_include_extra_info_available := true;
669
670 % Now make |end| and |bye| |outer| again; it seems |let| does not
671 % restore this attribute.
672 %
673 outer end, bye;
674
675 % Here are macros to handle write-white devices.
676 %
677 % The basic correction for write-white fonts occurs in the definition
678 % of |font_setup|. This can be used to extend or change the write-black
679 % definition in Computer Modern's {\tt cmbase.mf} or other base files
680 % based on CM, such as {\tt dxbase.mf}. This has no effect at 1200$\,$dpi.
681 def mode_write_white_setup_ =
682 newinternal blacker_min;
683 def define_whole_blacker_pixels(text t) =
684 forsuffixes $=t: $:=hround($.#*hppp+blacker);
685 if $ <=blacker_min-1: $:=blacker_min; fi endfor enddef;
686
687 def define_whole_vertical_blacker_pixels(text t) =
688 forsuffixes $=t: $:=vround($.#*hppp+blacker);
689 if $ <=blacker_min-1: $:=blacker_min _o_; fi endfor enddef;
690
691 % Only do the above once, in case a font file (unnecessarily)
692 % calls |mode_setup| more than once.
693 let mode_write_white_setup_ = relax
694 enddef;
695
696
697 %%%% Continue to print block comments ragged right, but also check
698 %%%% if comments start with \[ indicating lines to be set flush right.
699 %%
700 %%\def\9{$\futurelet\next\doit}
701 %%\let\[=\relax
702 %%\def\doit{\ifx\next\[%
703 %% \def\next{\hfill{\rm\%}}\else\def\next{{\rm\%}}\fi\next}
704 %%%%
705 %%\vfill\eject
706 % Here are the modes, given mostly in alphabetical order.
707
708 % From {\tt [email protected]}.
709 mode_def agfafzz = %\[ AGFA 400PS (406dpi)
710 mode_param (pixels_per_inch, 406);
711 mode_param (blacker, .2);
712 mode_param (fillin, 0);
713 mode_param (o_correction, .6);
714 mode_common_setup_;
715 enddef;
716 AgfaFourZeroZero := agfafzz;
717
718 % From {\tt [email protected]}.
719 mode_def agfatfzz = %\[ AGFA P3400PS (400dpi)
720 mode_param (pixels_per_inch, 400);
721 cx_;
722 enddef;
723 AgfaThreeFourZeroZero := agfatfzz;
724
725 % From {\tt [email protected]}.
726 mode_def amiga = %\[ Commodore Amiga (100dpi)
727 mode_param (pixels_per_inch, 100);
728 mode_param (blacker, 0);
729 mode_param (fillin, 0);
730 mode_param (o_correction, .2);
731 mode_common_setup_;
732 enddef;
733 onezz := amiga;
734 OneZeroZero := amiga;
735
736 mode_def aps = %\[ Autologic APS-Micro5 (723dpi)
737 mode_param (pixels_per_inch, 722.909);
738 mode_param (blacker, .2);
739 mode_param (fillin, .2);
740 mode_param (o_correction, 1);
741 mode_common_setup_;
742 enddef;
743
744 % From {\tt [email protected]}. Tested on the single APS-6 at IBM Research.
745 mode_def apssixhi = %\[ Autologic APS-Micro6 (1016dpi)
746 mode_param (pixels_per_inch, 1016);
747 mode_param (blacker, 0);
748 mode_param (fillin, 0);
749 mode_param (o_correction, 1);
750 mode_common_setup_;
751 enddef;
752
753 % From {\tt [email protected]}.
754 mode_def atariezf = %\[ Atari ST SLM 804 printer (300dpi)
755 mode_param (pixels_per_inch, 300);
756 mode_param (blacker, 0);
757 mode_param (fillin, .5);
758 mode_param (o_correction, 0);
759 mode_param (blacker_min, 2);
760 mode_common_setup_;
761 mode_write_white_setup_;
762 enddef;
763 AtariSLMEightZeroFour := atariezf;
764
765 % From {\tt [email protected]}. {\tt [email protected]} says that
766 % different previewers use different resolutions (95$\,$dpi, 96$\,$dpi,
767 % or 101$\,$dpi), but no one seems to know what the real resolution is.
768 mode_def atarinf = %\[ Atari previewer (95dpi)
769 mode_param (pixels_per_inch, 95);
770 mode_param (blacker, 0);
771 mode_param (fillin, 0);
772 mode_param (o_correction, 0.1);
773 mode_common_setup_;
774 enddef;
775 AtariNineFive := atarinf;
776
777 mode_def atarins = %\[ Atari previewer (96dpi)
778 mode_param (pixels_per_inch, 96);
779 mode_param (blacker, 0);
780 mode_param (fillin, 0);
781 mode_param (o_correction, 0.1);
782 mode_common_setup_;
783 enddef;
784 AtariNineSix := atarins;
785
786 % From {\tt [email protected]}.
787 mode_def atariotf = %\[ Atari ST SM 124 screen (101dpi)
788 mode_param (pixels_per_inch, 101);
789 mode_param (blacker, 0);
790 mode_param (fillin, 0);
791 mode_param (o_correction, .4);
792 mode_common_setup_;
793 enddef;
794 AtariSMOneTwoFour := atariotf;
795
796 mode_def bitgraph = %\[ BBN Bitgraph (118dpi)
797 mode_param (pixels_per_inch, 118);
798 mode_param (blacker, .55);
799 mode_param (fillin, .1);
800 mode_param (o_correction, .3);
801 mode_common_setup_;
802 enddef;
803
804 % From {\tt [email protected]}, 9 February 1994.
805 mode_def bjtenex = %\[ Canon BubbleJet 10ex (360dpi)
806 mode_param (pixels_per_inch, 360);
807 mode_param (blacker, .6);
808 mode_param (fillin, 0);
809 mode_param (o_correction, .6);
810 mode_common_setup_;
811 enddef;
812
813 % {\tt [email protected]} (Clayton Weaver), 4 February 1997.
814 % Might want to recheck |o_correction|, which could vary per unit.
815 mode_def bjtzzex = %\[ Canon BubbleJet 200ex (360 dpi)
816 mode_param (pixels_per_inch, 360);
817 mode_param (blacker, 1.2);
818 mode_param (fillin, .2);
819 mode_param (o_correction, 0);
820 mode_common_setup_;
821 enddef;
822
823 % {\tt [email protected]}, 30 January 1997.
824 mode_def bjtzzs = %\[ Canon BubbleJet 200 (720x360dpi)
825 mode_param (pixels_per_inch, 720);
826 mode_param (aspect_ratio , 0.5);
827 mode_param (blacker, 0.0);
828 mode_param (fillin, 0);
829 mode_param (o_correction, 1.0);
830 mode_common_setup_;
831 enddef;
832
833 % {\tt [email protected]}, 30 January 1997.
834 mode_def bjtzzl = %\[ BubbleJet 200 landscape (360x720 dpi)
835 bjtzzs_;
836 landscape;
837 enddef;
838
839 mode_def boise = %\[ HP 2680A (180dpi)
840 mode_param (pixels_per_inch, 180);
841 mode_param (blacker, .55);
842 mode_param (fillin, .1);
843 mode_param (o_correction, .3);
844 mode_common_setup_;
845 enddef;
846
847 % From {\tt [email protected]}.
848 mode_def canonbjc = %\[ Canon BJC-600 (360dpi)
849 mode_param (pixels_per_inch, 360);
850 mode_param (blacker, 0);
851 mode_param (fillin, 0);
852 mode_param (o_correction, .8);
853 mode_common_setup_;
854 enddef;
855 CanonBJCSixZeroZero := canonbjc;
856
857 % From {\tt [email protected]}, 8 April 1993. The straightforward
858 % mode with |blacker=0|, |fillin=0|, |o_correction=1| seems to
859 % work fine for the Canon EX engine inside Apple's LaserWriter Pro 630.
860 % It produces light, clear lines and type. But {\tt [email protected]}
861 % sent in the revised values below on 12 December 1993, tested on
862 % the major CM fonts at 5, 7, and 10$\,$pt and producing slightly
863 % better results.
864 mode_def canonex = %\[ LaserWriter Pro 630 (600dpi)
865 mode_param (pixels_per_inch, 600);
866 mode_param (blacker, .2);
867 mode_param (fillin, .1);
868 mode_param (o_correction, .85);
869 mode_common_setup_;
870 enddef;
871 CanonEX := canonex;
872
873 mode_def canonlbp = %\[ Symbolics LGP-10 (240dpi)
874 mode_param (pixels_per_inch, 240);
875 mode_param (blacker, .2);
876 mode_param (fillin, .2);
877 mode_param (o_correction, .4);
878 mode_common_setup_;
879 enddef;
880 CanonLBPTen := canonlbp;
881
882 % This is really 1301.5; MF produces 1301, so use that.
883 mode_def cg = %\[ Compugraphic 8600 (1301x1569dpi)
884 mode_param (pixels_per_inch, 1301);
885 mode_param (aspect_ratio, 1569 / pixels_per_inch);
886 mode_param (blacker, .2);
887 mode_param (fillin, .2);
888 mode_param (o_correction, 1);
889 mode_common_setup_;
890 enddef;
891 CompugraphicEightSixZeroZero := cg;
892
893 mode_def cgl = %\[ Compugraphic 8600 landscape (1569x1302dpi)
894 cg_;
895 landscape;
896 enddef;
897
898 % These values from Linotype Linotronic [13]00 modified to 1200$\,$dpi.
899 % From {\tt wagman\%[email protected]}.
900 mode_def cgnszz = %\[ Compugraphic 9600 (1200dpi)
901 mode_param (pixels_per_inch, 1200);
902 mode_param (blacker, .65);
903 mode_param (fillin, -.1);
904 mode_param (o_correction, .5);
905 mode_common_setup_;
906 enddef;
907 CompugraphicNineSixZeroZero := cgnszz;
908
909 % This has a resolution of |5333 + 1/3| pixels per inch.
910 mode_def crs = %\[ Alphatype CRS (5333dpi)
911 mode_param (pixels_per_inch, 4000 + 4000/3);
912 mode_param (blacker, 4);
913 mode_param (fillin, 0);
914 mode_param (o_correction, 1);
915 mode_common_setup_;
916 enddef;
917
918 % This applies to the LaserWriter Plus, HP LaserJet, HP LaserJet Plus,
919 % and also the Canon LBP-LX engine, in the LaserJet IIP, QMS 410,
920 % and Apple Personal LaserWriter, and also to the CanonSX engine,
921 % in the LaserWriter II family. And {\tt [email protected]}
922 % says it works well for the ``enhanced-resolution'' LaserJet III.
923 % {\tt [email protected]} is developing a mode for the Canon EX engine
924 % inside an Apple Pro 630 printer.
925 mode_def cx = %\[ Canon CX, SX, LBP-LX (300dpi)
926 mode_param (pixels_per_inch, 300);
927 mode_param (blacker, 0);
928 mode_param (fillin, .2);
929 mode_param (o_correction, .6);
930 mode_common_setup_;
931 enddef;
932 CanonCX := cx;
933 corona := cx;
934 dp := cx; % some kind of DataProducts
935 hplaser := cx;
936 imagen := cx;
937 kyocera := cx;
938 laserwriter := cx;
939 % I have seen a claim the LaserJet II was the Canon SX
940 % write-white engine, but I don't think that's right.
941 laserjethi := cx;
942 laserjet := cx;
943 % {\tt [email protected]} says that this is definitely not a
944 % write-white engine, despite earlier versions of this file claiming
945 % the contrary. Thus, probably the same parameters as |cx| will do.
946 CanonSX := cx;
947 CanonLBPLX := cx;
948
949 % At least magstep 2 is recommended at this low resolution.
950 mode_def datadisc = %\[ DataDisc (70dpi)
951 mode_param (pixels_per_inch, 70);
952 mode_param (blacker, 0);
953 mode_param (fillin, 0);
954 mode_param (o_correction, .2);
955 mode_common_setup_;
956 enddef;
957 DD := datadisc;
958
959 mode_def newdd = %\[ DataDisc (70x93dpi)
960 mode_param (aspect_ratio, 4/3);
961 datadisc_;
962 enddef;
963 DataDiscNew := newdd;
964
965 mode_def newddl = %\[ DataDisc landscape (93x70dpi)
966 newdd_;
967 landscape;
968 enddef;
969
970 % From {\tt [email protected]}. True resolution is 98.2236
971 % by 102.4. See comments for |DECsmall| just above.
972 mode_def declarge = %\[ DEC 19-inch, 1280 x 1024 (100dpi)
973 mode_param (pixels_per_inch, 100);
974 mode_param (blacker, 0);
975 mode_param (fillin, 0);
976 mode_param (o_correction, 0);
977 mode_common_setup_;
978 enddef;
979 DEClarge := declarge;
980 elvira := declarge;
981
982 % From {\tt [email protected]}. True resolution is 78.1069
983 % by 86.0612, but a square aspect ratio works better; furthermore,
984 % Computer Modern isn't prepared to deal with fractional pixel values.
985 mode_def decsmall = %\[ DEC 17-inch, 1024 x 768 (82dpi)
986 mode_param (pixels_per_inch, 82);
987 mode_param (blacker, 0);
988 mode_param (fillin, 0);
989 mode_param (o_correction, 0);
990 mode_common_setup_;
991 enddef;
992 DECsmall := decsmall;
993
994 % From {\tt [email protected]}.
995 mode_def deskjet = %\[ HP DeskJet 500 (300dpi)
996 mode_param (pixels_per_inch, 300);
997 mode_param (blacker, 0);
998 mode_param (fillin, 0);
999 mode_param (o_correction, .6);
1000 mode_common_setup_;
1001 enddef;
1002 HPDeskJet := deskjet;
1003
1004 % From {\tt [email protected]}, 10 May 93.
1005 % With |fillin=0|, the diagonal of {\tt cmtt10}'s `z' is too thin.
1006 % |blacker=.8| too thin, 2 too thick.
1007 mode_def docutech = %\[ Xerox 8790 or 4045 (600dpi)
1008 mode_param (pixels_per_inch, 600);
1009 mode_param (blacker, 1);
1010 mode_param (fillin, .1);
1011 mode_param (o_correction, 0.9);
1012 mode_common_setup_;
1013 enddef;
1014 XeroxDocutech := docutech;
1015
1016 % From {\tt waits.mf}.
1017 mode_def dover = %\[ Xerox Dover (384dpi)
1018 mode_param (pixels_per_inch, 384);
1019 mode_param (blacker, 1.2);
1020 mode_param (fillin, 0);
1021 mode_param (o_correction, .6);
1022 mode_common_setup_;
1023 enddef;
1024
1025 % Reported by Silas Brown, 4 April 2003, via Debian bug 184875.
1026 % {\tt dvips -Ppdf} wants 8000$\,$dpi fonts, so define a mode for that.
1027 mode_def dpdfezzz = %\[ dvips -Ppdf (8000dpi)
1028 mode_param (pixels_per_inch, 4000 * 2);
1029 mode_param (blacker, 0);
1030 mode_param (fillin, 0);
1031 mode_param (o_correction, 1);
1032 mode_common_setup_;
1033 enddef;
1034 pdf := dpdfezzz; % mentioned in 2026 mf.man, for simplicity
1035
1036 % {\tt [email protected]}, for the Amiga ShowDVI previewer.
1037 mode_def eighthre = %\[ EightThree (83dpi)
1038 mode_param (pixels_per_inch, 83);
1039 mode_param (blacker, 0);
1040 mode_param (fillin, 0);
1041 mode_param (o_correction, .2);
1042 mode_common_setup_;
1043 enddef;
1044 EightThree := eighthre;
1045
1046 % {\tt [email protected]}, 25 November 1997. To print in 360dpi (much
1047 % faster, but lower quality) use the |epstylus| mode instead. This
1048 % printer seems to make smaller dots when printing at 720$\,$dpi and
1049 % larger ones when printing at 360$\,$dpi. I tried 720x1440 resolution
1050 % as well, but found it not worth the additional time. If you use
1051 % Ghostscript, you need at least version 5.03 to support 720$\,$dpi on
1052 % this printer. This mode may work with the Epson Stylus color 800 as
1053 % well. I tested this mode with Matt Swift's test, found above.
1054 % With |fillin| set to zero, the test had no `\' at 5$\,$pt.
1055 %
1056 mode_def epscszz = %\[ Epson Stylus Color 600 (720 dpi)
1057 mode_param (pixels_per_inch, 720);
1058 mode_param (blacker, .25);
1059 mode_param (fillin, 0.5);
1060 mode_param (o_correction, .8);
1061 mode_common_setup_;
1062 enddef;
1063
1064 % From {\tt [email protected]}, 5 Dec 1992.
1065 mode_def epsdrft = %\[ Epson (120x72dpi)
1066 mode_param (pixels_per_inch, 120);
1067 mode_param (aspect_ratio, 72 / pixels_per_inch);
1068 epson_;
1069 enddef;
1070 epsdraft := epsdrft;
1071
1072 mode_def epsdrftl = %\[ Epson (72x120dpi)
1073 epsdrft_;
1074 landscape;
1075 enddef;
1076
1077 % From {\tt [email protected]}, 5 Dec 1992.
1078 mode_def epsfast = %\[ Epson fast (60x72dpi)
1079 mode_param (pixels_per_inch, 60);
1080 mode_param (aspect_ratio, 72 / pixels_per_inch);
1081 epson_;
1082 enddef;
1083
1084 mode_def epsfastl = %\[ Epson fast landscape (72x60dpi)
1085 epsfast_;
1086 landscape;
1087 enddef;
1088
1089 % From Hippocrates Sendoukas {\tt <[email protected]>}, 17 April 1999.
1090 mode_def epsmed = %\[ Epson med MX/FX 9-pin (240x144dpi)
1091 mode_param (pixels_per_inch, 240);
1092 mode_param (aspect_ratio, 144 / pixels_per_inch);
1093 epson_;
1094 enddef;
1095
1096 mode_def epsmedl = %\[ Epson med MX/FX 9-pin landscape (144x240dpi)
1097 epsmed_;
1098 landscape;
1099 enddef;
1100
1101 % These values from Charles Karney, {\sl TUGboat} 8(2), page 133. This
1102 % is for the Epson MX/FX family (-85, -286), which are 9-pin printers.
1103 % The 24-pin LQ family have higher resolutions; no one has sent me
1104 % definitions for them yet. Ditto for Epson's laser printer.
1105 % (Thanks to {\tt [email protected]} for all this information.)
1106 mode_def epson = %\[ Epson MX/FX 9-pin (240x216dpi)
1107 mode_param (pixels_per_inch, 240);
1108 mode_param (aspect_ratio, 216 / pixels_per_inch);
1109 mode_param (blacker, 0);
1110 mode_param (fillin, 0);
1111 mode_param (o_correction, .2);
1112 mode_common_setup_;
1113 enddef;
1114 EpsonMXFX := epson;
1115 epshi := epson;
1116 epsonfx := epson;
1117
1118 mode_def epsonl = %\[ Epson MX/FX 9-pin landscape (216x240dpi)
1119 epson_;
1120 landscape;
1121 enddef;
1122
1123 % From {\tt [email protected]}, 6 September 93.
1124 % The modes |cx| and |HPLaserJetIIISi| are too spindly.
1125 % This works (not awesome, o's and e's are slightly taller than
1126 % they should be in large pt. fonts) on my Epson Action Laser 1500
1127 % with LaserJetIIIsi emulation and RITech (Epson's Resolution
1128 % Enhancement). It might work for the model 1000 or some HP's.
1129 mode_def epsonact = %\[ Epson Action Laser 1500 (300dpi)
1130 mode_param (pixels_per_inch, 300);
1131 mode_param (blacker, .8);
1132 mode_param (fillin, 0);
1133 mode_param (o_correction, 0.95);
1134 mode_common_setup_;
1135 enddef;
1136 EpsonAction := epsonact;
1137
1138 % Corrected to 216$\,$dpi vertically, 5 Dec 1992.
1139 % From {\tt [email protected]}.
1140 mode_def epsonlo = %\[ Epson (120x216dpi)
1141 mode_param (pixels_per_inch, 120);
1142 mode_param (aspect_ratio, 216 / pixels_per_inch);
1143 epson_;
1144 enddef;
1145 epslo := epsonlo;
1146
1147 mode_def epsonlol = %\[ Epson landscape (216x120dpi)
1148 epsonlo_;
1149 landscape;
1150 enddef;
1151
1152 % From {\tt Sebastian\[email protected]}, 19 April 1996. In comparison
1153 % to some postscript fonts, the characters seemed to light with blacker
1154 % 0, but much too heavy with a blacker greater than 1. I tried blacker
1155 % .6 and finally settled for .7. All the other values are rather
1156 % fictional, I didn't really test them out.
1157 mode_def epsonsq = %\[ Epson SQ 870 (360dpi)
1158 mode_param (proofing, 0)
1159 mode_param (pixels_per_inch, 360);
1160 mode_param (blacker, .7);
1161 mode_param (fillin, .2);
1162 mode_param (o_correction, .9);
1163 mode_common_setup_;
1164 enddef;
1165 EpsonSQEightSevenZero := epsonsq;
1166
1167 % Following three modes from {\tt [email protected]} (Marc Fleischeuers).
1168 % I could not quite get the `z' diagonal to get as thin as the
1169 % horizontal lines, even pushing |fillin| up to 0.8. This printer tends
1170 % to make things lighter on lower resolutions so I compensate a little
1171 % with increasing |blacker|. But not all the way, as this would fill in
1172 % the little holes in the `e' and `s' at 5$\,$pt. Otherwise it's pretty
1173 % cool, not as crisp as an |ljfour| but better than most inkjets I've seen.
1174 mode_def epstypro = %\[ Epson Stylus Pro (360dpi)
1175 mode_param (pixels_per_inch, 360);
1176 mode_param (blacker, 0.2);
1177 mode_param (fillin, 0.8);
1178 mode_param (o_correction, 0);
1179 mode_common_setup_;
1180 enddef;
1181 EpsonStylusPro := epstypro;
1182
1183 mode_def epstyplo = %\[ Epson Stylus Pro (180dpi)
1184 mode_param (pixels_per_inch, 180);
1185 mode_param (blacker, .35);
1186 mode_param (fillin, 0.8);
1187 mode_param (o_correction, 0);
1188 mode_common_setup_;
1189 enddef;
1190 EpsonStylusProLow := epstyplo;
1191
1192 % Good time saver, almost as good as 720x720 but a lot faster.
1193 mode_def epstypmd = %\[ Epson Stylus Pro (720x360dpi)
1194 mode_param (pixels_per_inch, 720);
1195 mode_param (aspect_ratio, 360 / pixels_per_inch);
1196 mode_param (blacker, 0);
1197 mode_param (fillin, 0.8);
1198 mode_param (o_correction, 0);
1199 mode_common_setup_;
1200 enddef;
1201 EpsonStylusProMed := epstypmd;
1202
1203 mode_def epstypml = %\[ Epson Stylus Pro landscape (360x720dpi)
1204 epstypmd_;
1205 landscape;
1206 enddef;
1207 epstypmdl := epstypml;
1208
1209 mode_def epswlo = %\[ Epson low MX/FX 9-pin (120x144dpi)
1210 mode_param (pixels_per_inch, 120);
1211 mode_param (aspect_ratio, 144 / pixels_per_inch);
1212 epson_;
1213 enddef;
1214
1215 mode_def epswlol = %\[ Epson low MX/FX 9-pin landscape (144x120dpi)
1216 epswlo_;
1217 landscape;
1218 enddef;
1219
1220 mode_def esphi = %\[ Epson Stylus Pro (720dpi)
1221 mode_param (pixels_per_inch, 720);
1222 mode_param (blacker, 0);
1223 mode_param (fillin, 0.8);
1224 mode_param (o_correction, 1);
1225 mode_common_setup_;
1226 enddef;
1227 EpsonStylusProHigh := esphi;
1228
1229 % From {\tt [email protected]}, 8 December 1994.
1230 %
1231 % The |blacker| parameter is the most critical; changing |o_correction|
1232 % has lesser effect, and may also be increased or decreased somewhat.
1233 % I tested this by comparing output with printouts of a HP LaserJet
1234 % printer using the LJ fonts. This printer had the fancy resolution
1235 % enhancement feature (RET) which makes the pixel steps almost
1236 % invisible. I did most of the comparison with {\tt cmr12}, {\tt cmbx12},
1237 % {\tt cmr12} magstep2 and {\tt cmss9}.
1238 %
1239 % The Stylus printer is a ink printer, but it works with a piezo drive
1240 % instead of a bubble jet. This may be the reason why it draws its lines
1241 % very tiny and thin. At least the pixel diameters are very sharp and
1242 % they are far away from that bulky dots produced by the needles of
1243 % a NEC P6.
1244 mode_def epstylus = %\[ Epson Stylus (360dpi)
1245 mode_param (pixels_per_inch, 360);
1246 mode_param (blacker, .35);
1247 mode_param (fillin, 0);
1248 mode_param (o_correction, .8);
1249 mode_common_setup_;
1250 enddef;
1251
1252 % {\tt [email protected]}, for the Amiga ShowDVI previewer.
1253 mode_def fourfour = %\[ FourFour (44dpi)
1254 mode_param (pixels_per_inch, 44);
1255 mode_param (blacker, 0.05);
1256 mode_param (fillin, .1);
1257 mode_param (o_correction, .2);
1258 mode_common_setup_;
1259 enddef;
1260 FourFour := fourfour;
1261
1262 % From {\tt [email protected]}.
1263 % Revised by {\tt [email protected]}, 24 May 1994.
1264 mode_def gtfax = %\[ G3fax (204x196dpi)
1265 mode_param (pixels_per_inch, 204);
1266 mode_param (aspect_ratio, 196 / pixels_per_inch);
1267 mode_param (blacker, 0);
1268 mode_param (fillin, .2);
1269 mode_param (o_correction, .2);
1270 mode_common_setup_;
1271 enddef;
1272 GThreefax := gtfax;
1273 gtfaxhi := GThreefax;
1274
1275 mode_def gtfaxl = %\[ G3fax landscape (196x204dpi)
1276 gtfax_;
1277 landscape;
1278 enddef;
1279
1280 % From {\tt [email protected]}, 24 May 1994.
1281 mode_def gtfaxlo = %\[ G3fax (204x98dpi)
1282 mode_param (pixels_per_inch, 204);
1283 mode_param (aspect_ratio, 98 / pixels_per_inch);
1284 gtfax_;
1285 enddef;
1286
1287 mode_def gtfaxlol = %\[ G3fax landscape (98x204dpi)
1288 gtfaxlo_;
1289 landscape;
1290 enddef;
1291
1292 % {\tt [email protected]}, 30 October 1995.
1293 mode_def highfax = %\[ G3fax (200dpi)
1294 mode_param (pixels_per_inch, 200);
1295 mode_param (blacker, 0);
1296 mode_param (fillin, .2);
1297 mode_param (o_correction, .2);
1298 mode_common_setup_;
1299 enddef;
1300 hifax := highfax;
1301
1302 % Martin Ruckert, 7 September 2020.
1303 % 600dpi is much higher resolution than currently available on laptops
1304 % or mobile devices, but they do do antialiasing. Here are some words
1305 % from Martin about it:
1306 %
1307 % PK fonts are strictly black and white. On real paper, the ink dots will
1308 % be fuzzy at the edges smoothing the outline. On electronic devices, a
1309 % black and white font does look jagged (unless the device resolution is
1310 % very high). So it is better to produce a black and white font at a
1311 % higher resolution and let the graphics card scale it down to the device
1312 % resolution. At the edges then one device pixel will correspond to
1313 % several font pixels and the graphics card will average over these pixels
1314 % and produce a gray value. The fonts then look much smoother. 600dpi is a
1315 % good compromise. The font is not too big, and it will still look nice.
1316 % If the device resolution is e.g. only 300dpi, 4 pixel in the font will
1317 % map to one pixel on the screen. So around the edges you get 5 different
1318 % gray-levels from all black (0) to all white (4). If the device
1319 % resolution is even lower, the shading at the edges uses even more gray
1320 % values. |blacker| is the only parameter with much effect here.
1321 mode_def hitexlaptop = %\[ Hi\TeX\ (HINT) laptop (600dpi)
1322 mode_param (pixels_per_inch, 600);
1323 mode_param (blacker, 0.6);
1324 mode_param (fillin, 0.2);
1325 mode_param (o_correction, .4);
1326 mode_common_setup_;
1327 enddef;
1328
1329 % Martin Ruckert, 7 September 2020. See above.
1330 mode_def hitexmobile = %\[ Hi\TeX\ (HINT) mobile (600dpi)
1331 mode_param (pixels_per_inch, 600);
1332 mode_param (blacker, 1.6);
1333 mode_param (fillin, 0.2);
1334 mode_param (o_correction, .4);
1335 mode_common_setup_;
1336 enddef;
1337
1338 % {\tt [email protected]}, 27 August 1993.
1339 mode_def hprugged = %\[ HP RuggedWriter 480 (180dpi)
1340 mode_param (pixels_per_inch, 180);
1341 mode_param (blacker, .55);
1342 mode_param (fillin, .1);
1343 mode_param (o_correction, .3);
1344 mode_common_setup_;
1345 enddef;
1346
1347 % Some general comments on the IBM printers, courtesy of {\tt [email protected]}.
1348 %
1349 % IBM 3820's, 3825's, 3827's and 3835's have some sort of corner imaging
1350 % or shading that the IBM 3812's and 3816's don't. The latter two models
1351 % may get this feature in the future.
1352 %
1353 % The IBM 3827 is made by Kodak, the rest are IBM engines.
1354 %
1355 % Some of the other printers have a knob that allows a service engineer
1356 % to set one of up to ten levels of darkness. At IBM Research, we run
1357 % very black. The service engineer sets the level by running a completely
1358 % black page and then two completely blank ones. The black page
1359 % must be black and the following two must be completely white.
1360 %
1361 % Thanks to Jim Hafner ({\tt [email protected]}) for experimenting with
1362 % |blacker|, and Paul Dantzig for information about these printers.
1363 %
1364 % From {\tt [email protected]}. This is for the 3820, but can be used
1365 % for 3812, 3816, 3825, 3837 3800 and 3827 printers (these are all
1366 % 240$\,$pels IBM printers that use the same font format when driven
1367 % by PSF/VM).
1368 mode_def ibm_a = %\[ IBM 38xx (240dpi)
1369 mode_param (pixels_per_inch, 240);
1370 mode_param (blacker, .35);
1371 mode_param (fillin, -.2);
1372 mode_param (o_correction, .2);
1373 mode_common_setup_;
1374 enddef;
1375
1376 % From {\tt [email protected]}. For the typewriter, slanted, and italic
1377 % fonts, |blacker=0| makes the `M's and `W's more legible. But then
1378 % the weight of the font does not match the others.
1379 mode_def ibmd = %\[ IBM 38xx (240dpi)
1380 mode_param (pixels_per_inch, 240);
1381 mode_param (blacker, .3);
1382 mode_param (fillin, .4);
1383 mode_param (o_correction, .75);
1384 mode_common_setup_;
1385 enddef;
1386
1387 % These values from {\tt [email protected]}.
1388 mode_def ibmega = %\[ IBM EGA monitor (96x81dpi)
1389 mode_param (pixels_per_inch, 96);
1390 mode_param (aspect_ratio, .841);
1391 mode_param (blacker, .3);
1392 mode_param (fillin, 0);
1393 mode_param (o_correction, 0);
1394 mode_common_setup_;
1395 enddef;
1396
1397 mode_def ibmegal = %\[ IBM EGA monitor landscape (81x96dpi)
1398 ibmega_;
1399 landscape;
1400 enddef;
1401
1402 % From {\tt [email protected]}, 30 October 1993.
1403 % The difference of 0.1 in |blacker| really does make a difference.
1404 mode_def ibmfzon = %\[ IBM 4019 (300dpi)
1405 mode_param (pixels_per_inch, 300);
1406 mode_param (blacker, .1);
1407 mode_param (fillin, 0);
1408 mode_param (o_correction, .75);
1409 mode_param (blacker_min, 2);
1410 mode_common_setup_;
1411 mode_write_white_setup_;
1412 enddef;
1413 IBMFourZeroOneNine := ibmfzon;
1414
1415 % From {\tt [email protected]}. The print engine is made by Lexmark. The
1416 % printing person I asked, Paul Dantzig, says that the print quality of
1417 % the 4019 is fairly regular. Unlike the IBM 4216's, to his knowledge
1418 % only there is only one print engine by Lexmark has been ever used in
1419 % the 4019. And unlike the IBM 4029, there are not knobs on the inside
1420 % that would permit one to adjust the blacker to ones taste.
1421 %
1422 % While both RicohA and cx modes settings are acceptable, it looks
1423 % to me that the RicohA fonts are superior. I base this judgement on
1424 % tops and bottoms of curves on {\tt cmr10} such as `S', `U' `e' `o' and
1425 % the apostrophes. This effect is especially noticeable in a small font
1426 % like {\tt cmr6}.
1427 %
1428 % If you want to experiment with another setting, I'd start with |RicohA|
1429 % and set |blacker| to .1 or 0 instead of .2 but definitely keep
1430 % |mode_write_white_setup_|; I'd leave |fillin| and |o_correction| unchanged.
1431 %
1432 % From {\tt vumalki\%[email protected]}
1433 % and {\tt [email protected]}.
1434 %
1435 % {\tt [email protected]} (Jim Hafner) reports that this works fine
1436 % for the Lexmark 4039, a.k.a.\ IBM 4039, as along as the ``Printer
1437 % Darkness'' control is set to ``darker''.
1438 %
1439 mode_def ibmfztn = %\[ IBM 4029-30-39, 4250 (600dpi)
1440 mode_param (pixels_per_inch, 600);
1441 mode_param (blacker, .05);
1442 mode_param (fillin, 0);
1443 mode_param (o_correction, .75);
1444 mode_common_setup_;
1445 enddef;
1446 IBMFourZeroTwoNine := ibmfztn;
1447 IBMFourTwoThreeZero := ibmfztn;
1448 IBMFourTwoFiveZero := ibmfztn;
1449 IBMFourZeroThreeNine := ibmfztn;
1450 LexmarkFourZeroThreeNine := ibmfztn;
1451
1452 % From Rick Simpson via {\tt [email protected]}.
1453 mode_def ibmpp = %\[ IBM ProPrinter (240x216dpi)
1454 mode_param (pixels_per_inch, 240);
1455 mode_param (aspect_ratio, 216 / pixels_per_inch);
1456 mode_param (blacker, 0);
1457 mode_param (fillin, .2);
1458 mode_param (o_correction, 1);
1459 mode_common_setup_;
1460 enddef;
1461 IBMProPrinter := ibmpp;
1462 proprinter := IBMProPrinter;
1463
1464 mode_def ibmppl = %\[ IBM ProPrinter (216x240dpi)
1465 ibmpp_;
1466 landscape;
1467 enddef;
1468
1469 % From Rick Simpson via {\tt [email protected]}. Also gave values
1470 % of zero for |blacker|, |fillin|, and |o_correction|.
1471 mode_def ibmsoff = %\[ IBM 6154 display (118dpi)
1472 mode_param (pixels_per_inch, 118);
1473 mode_param (blacker, .8);
1474 mode_param (fillin, .2);
1475 mode_param (o_correction, 1);
1476 mode_common_setup_;
1477 enddef;
1478 IBMSixOneFiveFour := ibmsoff;
1479
1480 % From {\tt [email protected]}. This is an old, untested definition.
1481 mode_def sherpa = %\[ IBM 6670 (Sherpa) (240dpi)
1482 mode_param (pixels_per_inch, 240);
1483 mode_param (blacker, 1);
1484 mode_param (blacker_min, 2);
1485 mode_param (fillin, 1);
1486 mode_param (o_correction, .5);
1487 mode_common_setup_;
1488 mode_write_white_setup_;
1489 enddef;
1490 IBMSixSixSevenZero := sherpa;
1491
1492 % From {\tt vumalki\%[email protected]}.
1493 mode_def ibmteot = %\[ IBM 3812 (240dpi)
1494 mode_param (pixels_per_inch, 240);
1495 mode_param (blacker, .6);
1496 mode_param (blacker_min, 2);
1497 mode_param (fillin, .4);
1498 mode_param (o_correction, 0);
1499 mode_common_setup_;
1500 mode_write_white_setup_;
1501 enddef;
1502 IBMThreeEightOneTwo := ibmteot;
1503 IBMUlfHolleberg := IBMThreeEightOneTwo;
1504
1505 % These values from {\tt d\[email protected]}.
1506 mode_def ibmtetz = %\[ IBM 3820 (240dpi)
1507 mode_param (pixels_per_inch, 240);
1508 mode_param (blacker, .78);
1509 mode_param (fillin, .25);
1510 mode_param (o_correction, .5);
1511 mode_common_setup_;
1512 enddef;
1513 IBMThreeEightTwoZero := ibmtetz;
1514
1515 % From {\tt [email protected]} via {\tt [email protected]}.
1516 mode_def ibmtont = %\[ IBM 3193 screen (100dpi)
1517 mode_param (pixels_per_inch, 100);
1518 mode_param (blacker, 0);
1519 mode_param (fillin, 0);
1520 mode_param (o_correction, 0);
1521 mode_common_setup_;
1522 enddef;
1523 IBMThreeOneNineThree := ibmtont;
1524
1525 % From {\tt [email protected]} via {\tt [email protected]}.
1526 mode_def ibmtosn = %\[ IBM 3179 screen (87x65dpi)
1527 mode_param (pixels_per_inch, 87);
1528 mode_param (aspect_ratio, 0.75);
1529 mode_param (blacker, 0);
1530 mode_param (fillin, 0);
1531 mode_param (o_correction, 0);
1532 mode_common_setup_;
1533 enddef;
1534 IBMThreeOneSevenNine := ibmtosn;
1535
1536 mode_def ibmtosnl = %\[ IBM 3179 screen landscape (65x87dpi)
1537 ibmtosn_;
1538 landscape;
1539 enddef;
1540
1541 % These values from {\tt d\[email protected]}.
1542 % {\tt [email protected]} thinks |pixels_per_inch=96| might be better.
1543 mode_def ibmvga = %\[ IBM VGA monitor (110dpi)
1544 mode_param (pixels_per_inch, 110);
1545 mode_param (blacker, .3);
1546 mode_param (fillin, 0);
1547 mode_param (o_correction, 0);
1548 mode_common_setup_;
1549 enddef;
1550
1551 % The Chelgraph IBX is the machine introduced to North American \TeX\
1552 % users by Type~2000 in Mill Valley, California; telephone (415)~388-8873.
1553 % Since the machine's stated output resolution is only 2000$\,$dpi
1554 % this truly spectacular 9600$\,$dpi must be used for translation to
1555 % an outline font description. This has been tested and used in a
1556 % publication of the University of Washington Press. These values
1557 % from Pierre MacKay, based on Lance Carnes' crs values, at magstep~1.8.
1558 mode_def ibx = %\[ Chelgraph IBX (9600dpi)
1559 mode_param (pixels_per_inch, 4000 + 4000 + 1600);
1560 mode_param (blacker, 4);
1561 mode_param (fillin, 0);
1562 mode_param (o_correction, 1);
1563 mode_common_setup_;
1564 enddef;
1565 ChelgraphIBX := ibx;
1566
1567 % From {\tt local.mf} via {\tt [email protected]}.
1568 mode_def itoh = %\[ CItoh 8510A (160x144dpi)
1569 mode_param (pixels_per_inch, 160);
1570 mode_param (aspect_ratio, 144 / pixels_per_inch);
1571 mode_param (blacker, 0);
1572 mode_param (fillin, 0);
1573 mode_param (o_correction, .1);
1574 mode_common_setup_;
1575 enddef;
1576 CItohEightFiveOneZero := itoh;
1577
1578 mode_def itohl = %\[ CItoh 8510A landscape (144x160dpi)
1579 itoh_;
1580 landscape;
1581 enddef;
1582
1583 % From {\tt [email protected]}.
1584 mode_def itohtoz = %\[ CItoh 310 (240x144dpi)
1585 mode_param (pixels_per_inch, 240);
1586 mode_param (aspect_ratio, 144 / pixels_per_inch);
1587 mode_param (blacker, 0);
1588 mode_param (fillin, 0);
1589 mode_param (o_correction, .2);
1590 mode_common_setup_;
1591 enddef;
1592 citohtoz := itohtoz;
1593 CItohThreeOneZero := itohtoz;
1594 cthreeten := itohtoz;
1595
1596 mode_def itohtozl = %\[ CItoh 310 landscape (144x240dpi)
1597 itohtoz_;
1598 landscape;
1599 enddef;
1600
1601 % Perhaps the value for |fillin| should be 0.
1602 mode_def iw = %\[ Apple ImageWriter (144dpi)
1603 mode_param (pixels_per_inch, 144);
1604 mode_param (blacker, 0);
1605 mode_param (fillin, 0.3);
1606 mode_param (o_correction, .2);
1607 mode_common_setup_;
1608 enddef;
1609 imagewriter := iw;
1610
1611 % From {\tt [email protected]}, 20 August 93.
1612 % The mode |cx| is too spindly.
1613 mode_def jetiiisi = %\[ HP Laser Jet IIISi (300dpi)
1614 mode_param (pixels_per_inch, 300);
1615 mode_param (blacker, .2);
1616 mode_param (fillin, 0);
1617 mode_param (o_correction, .7);
1618 mode_common_setup_;
1619 enddef;
1620 HPLaserJetIIISi := jetiiisi;
1621
1622 % From John Sauter.
1623 mode_def lasf = %\[ DEC LA75 (144dpi)
1624 mode_param (pixels_per_inch, 144);
1625 mode_param (blacker, .3);
1626 mode_param (fillin, -.1);
1627 mode_param (o_correction, 0);
1628 mode_common_setup_;
1629 enddef;
1630 LASevenFive := lasf;
1631
1632 % Michael Covington's ({\tt [email protected]}) definition for the
1633 % Lexmark Optra R (4049), reflecting a taste for a heavier than
1634 % normal rendition of the Computer Modern fonts.
1635 %
1636 % You may prefer a lesser value of blacker (down to maybe 1.0).
1637 % Initially tested on 10, 12, 17-point CMR and 10-point math italic.
1638 %
1639 % While we're talking about the Optra R, here's another useful fact:
1640 % it takes 32-bit-wide 72-pin SIMMs, 70 or 80 ns. Contrary to the
1641 % documentation, you do not have to use IBM's special SIMMs.
1642 %
1643 % The resolution of 1200 and the |blacker| value of 3 causes {\tt cmbsy7}
1644 % to be generated with incorrect arrows and radical sign. The
1645 % |vtftzzlo| mode also fails. Decreasing |blacker| to 2 works around.
1646 % From {\tt [email protected]} (Olaf Weber) and Henrik Schmiediche.
1647 %
1648 mode_def lexmarkr = %\[ Lexmark Optra R 4049 (1200dpi)
1649 mode_param (pixels_per_inch, 1200);
1650 mode_param (blacker, 2); % used to be 3; works around {\tt cmbsy7} bug
1651 mode_param (fillin, 0);
1652 mode_param (o_correction, 1);
1653 mode_common_setup_;
1654 enddef;
1655 LexmarkOptraR := lexmarkr;
1656
1657 % Klaus Guntermann {\tt <[email protected]>}.
1658 % 19 January 1998. Mode for a Lexmark Optra S laser printer in true
1659 % 1200dpi mode. This printer model seems to be the successor of the
1660 % Optra R series above.
1661 %
1662 mode_def lexmarks = %\[ Lexmark Optra S 1250/1650/2450 (1200dpi)
1663 mode_param (pixels_per_inch, 1200);
1664 mode_param (blacker, 1);
1665 mode_param (fillin, 0);
1666 mode_param (o_correction, 1);
1667 mode_common_setup_;
1668 enddef;
1669 LexmarkOptraS := lexmarks;
1670
1671 % {\tt [email protected]} (Uri Blumenthal), 9 March 1997.
1672 % This is really a 1200$\,$dpi printer, but it can be operated in 600dpi mode.
1673 mode_def lexmarku = %\[ Lexmark Optra R+ 4049 (600dpi)
1674 mode_param (pixels_per_inch, 600);
1675 mode_param (blacker, .5);
1676 mode_param (fillin, 0);
1677 mode_param (o_correction, .75);
1678 mode_param (tracingtitles, 0);
1679 mode_common_setup_;
1680 enddef;
1681
1682 mode_def linolo = %\[ Linotype Linotronic [13]00 (635dpi)
1683 mode_param (pixels_per_inch, 635);
1684 linoone_;
1685 enddef;
1686 LinotypeOneZeroZeroLo := linolo;
1687 linohalf := LinotypeOneZeroZeroLo;
1688
1689 % Mode for Linotype Linotronic L-330 with a RIP-50 raster.
1690 % From: Steven T. Smith {\tt [email protected]}, 26 October 95.
1691 mode_def linolttz = %\[ Linotronic L-300 with RIP-50 (3386dpi)
1692 mode_param (pixels_per_inch, 3386);
1693 mode_param (blacker, 0);
1694 mode_param (o_correction, 1);
1695 mode_param (fillin, 0);
1696 mode_common_setup_;
1697 enddef;
1698 LinotypeLThreeThreeZero := linolttz;
1699
1700 % These values from {\tt d\[email protected]}.
1701 % The `a' in {\tt cmr5} looks better with |blacker=.3|. Values of .2
1702 % for both |blacker| and |fillin| have also been used.
1703 mode_def linoone = %\[ Linotronic [13]00 (1270dpi)
1704 mode_param (pixels_per_inch, 1270);
1705 mode_param (blacker, .65);
1706 mode_param (o_correction, 1);
1707 mode_param (fillin, -.1);
1708 mode_common_setup_;
1709 enddef;
1710 LinotypeOneZeroZero := linoone;
1711 linohi := LinotypeOneZeroZero;
1712 linothreelo := LinotypeOneZeroZero;
1713
1714 % These values from {\tt d\[email protected]}.
1715 mode_def linotzzh = %\[ Linotype Linotronic 300 (2540dpi)
1716 mode_param (pixels_per_inch, 2540);
1717 mode_param (blacker, .2); % Copied from |aps|---conjectural.
1718 mode_param (fillin, .2); % (ditto)
1719 mode_param (o_correction, 1); % (ditto)
1720 mode_common_setup_;
1721 enddef;
1722 linothree := linotzzh;
1723 LinotypeThreeZeroZeroHi := linotzzh;
1724 linosuper := linotzzh;
1725
1726 % (From Matt Swift {\tt [email protected]}, 1 Jan 1996.) This is a mode for
1727 % the HP LaserJet 5P, using dvipsk-5.58f and gs-2.6.2. I tuned it using
1728 % the file modetest.tex. The first sweep was (b,f,o) = (0, {0, .3, .6},
1729 % 0). The diagonal of 10$\,$pt lowercase z was too thin at .6, too thick
1730 % at 0. The second sweep was ({.4, .5, .6, .7}, .3, 0). At .6, the 5$\,$pt
1731 % small-cap lower-case A was on the verge of being filled in, but .6 is
1732 % a reasonable value. Blacker .4 looked a little spindly for many of
1733 % the 5$\,$pt fonts, especially italic and small-cap. The next sweep was
1734 % (.5, .3, {0, .4, .7, 1}). The sides of the 14$\,$pt upper-case O
1735 % (especially roman and small-cap) are relatively fatter with
1736 % o-correction 0 as opposed to 1. Almost every other mode for 600$\,$dpi
1737 % printers has 1, so I'm going with that.
1738 %
1739 mode_def ljfive = %\[ HP LaserJet 5 (600dpi)
1740 mode_param (pixels_per_inch, 600);
1741 mode_param (blacker, .75);
1742 mode_param (fillin, .3);
1743 mode_param (o_correction, 1);
1744 mode_common_setup_;
1745 enddef;
1746 laserjetfive := ljfive;
1747
1748 % From Michael Neuhauser {\tt [email protected]}. This is a
1749 % mode for HP LaserJet 5MP. I started with ljfive and found the Computer
1750 % Modern fonts much too black. Therefore I experimented with different
1751 % values of |blacker| to find .4 to be best.
1752 mode_def ljfivemp = %\[ HP LaserJet 5MP (600 dpi)
1753 mode_param (pixels_per_inch, 600);
1754 mode_param (blacker, .4);
1755 mode_param (fillin, .3);
1756 mode_param (o_correction, 1);
1757 mode_common_setup_;
1758 enddef;
1759 laserjetfivemp := ljfivemp;
1760 % There have been many modes for the LaserJet 4. The current values were
1761 % found by {\tt [email protected]} to be reasonable on a LaserJet 4MP
1762 % (at the default density setting, with resolution enhancement enabled).
1763 % I don't intend to change them again (unless someone convinces me
1764 % that they are truly mistaken in some way), although I would consider adding
1765 % different modes for other LaserJet 4 printers, if people contribute them.
1766 %
1767 % ({\tt [email protected]} gets better results with the density
1768 % setting on the printer at 4, instead of 3.)
1769 %
1770 % The first LaserJet 4 mode came from {\tt [email protected]},
1771 % 13 January 1993, with |blacker=0|, |fillin=0|, and |o_correction=.6|.
1772 % (This definition was forwarded to me by Barbara Beeton, and was
1773 % intended to be preliminary.)
1774 %
1775 % {\tt [email protected]} says that |IBMFourZeroTwoNine| works fine.
1776 %
1777 % {\tt [email protected]} supplied another set of values:
1778 % |blacker=.6|, |fillin=0|, and |o_correction=1|. He writes:
1779 % I've tested it extensively at 10$\,$pt and 12$\,$pt in both roman, italic,
1780 % and bold, and I've checked all the standard smaller sizes (5, 6, 7, 8,
1781 % and 9$\,$pt). Works reasonably well on both the LaserJet 4 and the 4si,
1782 % although characters come out somewhat lighter on the 4si. Assumes
1783 % that the density controls are set to their default values and that the
1784 % resolution enhancement feature is enabled. The |blacker| value was
1785 % chosen to make 12$\,$pt text look good; for 10$\,$pt text, set |blacker=.66|.
1786 %
1787 % I felt the output with |blacker=.6| was too dark; Computer Modern
1788 % was never intended to be as dark as it appears on 300$\,$dpi printers.
1789 % So I've decreased |blacker| to the value below. The other parameters
1790 % don't seem to matter much. (Even |blacker| doesn't matter all
1791 % {\it that} much.)
1792 %
1793 % Works for a 600$\,$dpi Accel-a-Writer {\tt [email protected]},
1794 % 16 August 95.
1795 %
1796 % Possibly also usable for the LaserJet 6 family.
1797 % From {\tt [email protected]} (Christian Jvnsson), 29 January 1997.
1798 %
1799 mode_def ljfour = %\[ HP LaserJet 4 (600dpi)
1800 mode_param (pixels_per_inch, 600);
1801 mode_param (blacker, .25);
1802 mode_param (fillin, 0);
1803 mode_param (o_correction, 1);
1804 mode_common_setup_;
1805 enddef;
1806 laserjetfour := ljfour;
1807 % {\tt [email protected]} uses this for the QMS-860.
1808 qmsesz := ljfour;
1809 % {\tt [email protected]} uses this for the
1810 % Apple LaserWriter Select 360, with a Fuji Xerox Xerographic engine.
1811 aselect := ljfour;
1812
1813 % {\tt [email protected]}, 2 January 1998. The LaserJet 5M
1814 % |mode_def|, |blacker=.35|, had very light output on the 4000. The
1815 % |blacker=2| setting results in output comparable to the LaserJet 5M
1816 % with |blacker=.35|. It is also noteworthy that in the ProRes 1200 mode
1817 % HP's resolution enhancement technology (RET) is not used, thus output
1818 % is exactly according to \MF. But perhaps |blacker=2| is too much, as
1819 % Computer Modern is supposed to be pretty light.
1820 mode_def ljfzzz = %\[ LaserJet 4000N, ProRes mode (1200dpi)
1821 mode_param (pixels_per_inch, 1200);
1822 mode_param (blacker, 1);
1823 mode_param (fillin, .1);
1824 mode_param (o_correction, 1);
1825 mode_common_setup_;
1826 enddef;
1827 laserjetfourzerozerozero := ljfzzz;
1828 laserjetfourthousand := ljfzzz;
1829
1830 % {\tt Nicolai Langfeldt <[email protected]>}, 16 May 1998.
1831 % This is for the default 16ppm 600dpi mode.
1832 %
1833 mode_def ljfzzzfr = %\[ HP LaserJet 4000 FastRes (600dpi)
1834 mode_param (pixels_per_inch, 600);
1835 mode_param (blacker, 0);
1836 mode_param (fillin, .2);
1837 mode_param (o_correction, 1);
1838 mode_common_setup_;
1839 enddef;
1840
1841 % From {\tt ST-TeX.MF} via {\tt [email protected]}. (The 300dpi LaserJet
1842 % is another |cx|.)
1843 mode_def ljlo = %\[ HP LaserJet (150dpi)
1844 mode_param (pixels_per_inch, 150);
1845 mode_param (blacker, 0);
1846 mode_param (fillin, .1);
1847 mode_param (o_correction, 1);
1848 mode_common_setup_;
1849 enddef;
1850 laserjetlo := ljlo;
1851
1852 % {\tt Niko Sauer <[email protected]>}, 11 October 2000.
1853 % Here are modes developed for and tested on the HP LaserJet 2100T/TN.
1854 % Mode ljtozz is for a resolution of 1200dpi, and ljtozzfr for 600dpi
1855 % Tradeoffs between |fillin| and |blacker| resulted in very clear,
1856 % sharp renderings of Computer Modern fonts which appears to be
1857 % preferable to what the modes ljfzzz ljfzzzfr for HP LaserJet 4000
1858 % yield on this printer. Preferences were tested by scrutiny of the
1859 % results by sample of people in the vicinity.
1860 %
1861 mode_def ljtozz = %\[ HP LaserJet 2100T/TN (1200dpi)
1862 mode_param (pixels_per_inch, 1200);
1863 mode_param (blacker, .7);
1864 mode_param (fillin, .15);
1865 mode_param (o_correction, 1);
1866 mode_common_setup_;
1867 enddef;
1868 laserjettwoonezerozero:=ljtozz;
1869 %
1870 mode_def ljtozzfr = %\[ HP LaserJet 2100T/TN (600dpi)
1871 mode_param (pixels_per_inch, 600);
1872 mode_param (blacker, .25);
1873 mode_param (fillin, .3);
1874 mode_param (o_correction, 1);
1875 mode_common_setup_;
1876 enddef;
1877 laserjettwoonezerozerofastres:=ljtozzfr;
1878
1879 % From {\tt [email protected]}, 13 January 1993. The actual
1880 % machine resolution of this machine is $1000 \times 400$, but it is
1881 % adjusted with the aid of software so that a $1000 \times 1000$ PK file
1882 % is used. The |o_correction|, however, seems grossly overdone if
1883 % the expected value of at or near unity is applied (on the grounds
1884 % that a 1000$\,$dpi font should be able to do full o-correction).
1885 % Apparently the 400$\,$dpi physical resolution has some effect here.
1886 % In any case, |o_correction=0.4| looks better, and lines up with
1887 % about the right optical adjustment on curves. Tested at American
1888 % School of Classical Studies Publications on 18 July, 1992.
1889 mode_def lmaster = %\[ LaserMaster (1000dpi)
1890 mode_param (pixels_per_inch, 1000);
1891 mode_param (blacker, 0.2);
1892 mode_param (fillin, 0.0);
1893 mode_param (o_correction, 0.4);
1894 mode_common_setup_;
1895 enddef;
1896 lasermaster := lmaster;
1897
1898 % From {\tt [email protected]}, 10 March 1996. I tried the entry
1899 % in modes.mf for a DEC LN03. This turned out much too dark---everything
1900 % looks bold. I did try sending write-black fonts to this printer, the
1901 % hairlines disappear. I don't know if these printers have a
1902 % blackness knob $\ldots$
1903 mode_def lnotr = %\[ DEC LN03R Scriptprinter (300dpi)
1904 mode_param (pixels_per_inch, 300);
1905 mode_param (blacker, 0);
1906 mode_param (blacker_min, 2);
1907 mode_param (fillin, -.6);
1908 mode_param (o_correction, .5);
1909 mode_common_setup_;
1910 mode_write_white_setup_;
1911 enddef;
1912 LNOthreR := lnotr;
1913
1914 % From Richard Watson at the Queensland Institute of Technology. This
1915 % printer is said to have some kind of Xerox engine, but I don't know which.
1916 mode_def lnzo = %\[ DEC LN01 (300dpi)
1917 mode_param (pixels_per_inch, 300);
1918 mode_param (blacker, .9);
1919 mode_param (blacker_min, 2);
1920 mode_param (fillin, 0);
1921 mode_param (o_correction, .5);
1922 mode_common_setup_;
1923 mode_write_white_setup_;
1924 enddef;
1925 LNZeroOne := lnzo;
1926 lps := lnzo;
1927 LPSFourZero := lnzo;
1928
1929 % From {\tt [email protected]}, 21 January 1993. Modified from
1930 % |qms|. Prints exactly like the QMS fonts from Northlake Software.
1931 mode_def lpstz = %\[ DEC lps20 (300dpi)
1932 mode_param (pixels_per_inch, 300);
1933 mode_param (blacker, .6);
1934 mode_param (fillin, -.3);
1935 mode_param (o_correction, .6);
1936 mode_common_setup_;
1937 enddef;
1938 LPSTwoZero := lpstz;
1939
1940 mode_def lqlores = %\[ Epson LQ-500 (180dpi)
1941 mode_param (pixels_per_inch, 180);
1942 mode_param (blacker, 0);
1943 mode_param (fillin, 0);
1944 mode_param (o_correction, .1);
1945 mode_common_setup_;
1946 enddef;
1947 EpsonLQFiveZeroZeroLo := lqlores;
1948
1949 % This and |EpsonLQFiveZeroZeroLo| also work for a Mannesmann 300
1950 % (from {\tt [email protected]}, 4 September 1991). The $360\times360$
1951 % modes for these printers fails for {\tt cudat}, however.
1952 mode_def lqmed = %\[ Epson LQ-500 (360x180dpi)
1953 mode_param (pixels_per_inch, 360);
1954 mode_param (aspect_ratio, 180 / pixels_per_inch);
1955 mode_param (blacker, 0); % 0.3 avoids `holes'.
1956 mode_param (fillin, 0);
1957 mode_param (o_correction, .1);
1958 mode_common_setup_;
1959 enddef;
1960 lqmedres := lqmed;
1961 EpsonLQFiveZeroZeroMed := lqmed;
1962
1963 mode_def lqmedl = %\[ Epson LQ-500 landscape (180x360dpi)
1964 lqmed_;
1965 landscape;
1966 enddef;
1967
1968 % These values from {\tt [email protected]}. |blacker = .8| or more
1969 % thickens dots, to their detriment. |blacker = .6| produces two-pixel
1970 % stems, which looks pretty good for {\tt cmr}, but it's a little dark
1971 % for {\tt cmti}, and {\tt cmbx} and {\tt cmr} then turn out the same.
1972 % |o_correction = 1| made no difference. |fillin = 1| made no
1973 % difference.
1974 mode_def lview = %\[ Sigma L-View monitor (118x109dpi)
1975 mode_param (pixels_per_inch, 118.06);
1976 mode_param (aspect_ratio, 109.25 / pixels_per_inch);
1977 mode_param (blacker, 0);
1978 mode_param (fillin, 0);
1979 mode_param (o_correction, 0);
1980 mode_common_setup_;
1981 enddef;
1982
1983 mode_def lviewl = %\[ Sigma L-View monitor landscape (109x118dpi)
1984 lview_;
1985 landscape;
1986 enddef;
1987
1988 % From {\tt [email protected]}, 13 February 1995.
1989 % This printer also runs at 300$\,$dpi (try |cx|), 400$\,$dpi (|next|),
1990 % and 600$\,$dpi (|ljfour|).
1991 mode_def lwpro = %\[ Apple LaserWriterPro 810 (800dpi)
1992 mode_param (pixels_per_inch, 800);
1993 mode_param (blacker, 0);
1994 mode_param (fillin, 0);
1995 mode_param (o_correction, 1);
1996 mode_common_setup_;
1997 enddef;
1998
1999 % This is untested.
2000 mode_def macmag = %\[ Mac screens at magstep 1 (86dpi)
2001 mode_param (pixels_per_inch, 86.4);
2002 mode_param (blacker, .35);
2003 mode_param (fillin, .1);
2004 mode_param (o_correction, .3);
2005 mode_common_setup_;
2006 enddef;
2007
2008 % From the VMS distribution tape (except {\tt [email protected]} changed
2009 % the |o_correction| to zero).
2010 mode_def mactrue = %\[ Mac screen (72dpi)
2011 mode_param (pixels_per_inch, 72);
2012 mode_param (blacker, 0);
2013 mode_param (fillin, 0);
2014 mode_param (o_correction, 0);
2015 mode_common_setup_;
2016 enddef;
2017 MacTrueSize := mactrue;
2018
2019 % From {\tt [email protected]}, 17 December 1992.
2020 % Various other values made little difference.
2021 mode_def ncd = %\[ NCD 19-inch (95dpi)
2022 mode_param (pixels_per_inch, 95);
2023 mode_param (blacker, 0);
2024 mode_param (fillin, 0);
2025 mode_param (o_correction, 0);
2026 mode_common_setup_;
2027 enddef;
2028
2029 % From {\tt [email protected]}.
2030 mode_def nec = %\[ NEC (180dpi)
2031 mode_param (pixels_per_inch, 180);
2032 mode_param (blacker, 0);
2033 mode_param (fillin, 0);
2034 mode_param (o_correction, .2);
2035 mode_common_setup_;
2036 enddef;
2037
2038 % This is the same as |cx|, except for the resolution.
2039 mode_def nechi = %\[ NEC-P6 (360dpi)
2040 mode_param (pixels_per_inch, 360);
2041 cx_;
2042 enddef;
2043 lqhires := nechi;
2044
2045 % {\tt [email protected]}, 7 June 1995.
2046 mode_def neclm = %\[ NEC PC-PR406LM (320dpi)
2047 mode_param (pixels_per_inch, 320);
2048 mode_param (blacker, .1);
2049 mode_param (fillin, 0);
2050 mode_param (o_correction, .6);
2051 mode_common_setup_;
2052 enddef;
2053
2054 % {\tt [email protected]}, 7 June 1995.
2055 mode_def nectzo = %\[ NEC PC-PR201 series (160dpi)
2056 mode_param (pixels_per_inch, 160);
2057 mode_param (blacker, 0);
2058 mode_param (fillin, 0);
2059 mode_param (o_correction, .2);
2060 mode_common_setup_;
2061 enddef;
2062 NecTwoZeroOne := nectzo;
2063
2064 % From {\tt [email protected]}.
2065 mode_def nexthi = %\[ NeXT Newgen (400dpi)
2066 mode_param (pixels_per_inch, 400);
2067 cx_;
2068 enddef;
2069 NeXTprinter := nexthi;
2070 Newgen := nexthi; % From {\tt [email protected]}.
2071
2072 % From {\tt [email protected]}.
2073 mode_def nextscrn = %\[ NeXT monitor (100dpi)
2074 mode_param (pixels_per_inch, 100);
2075 mode_param (blacker, 0);
2076 mode_param (fillin, 0);
2077 mode_param (o_correction, 0);
2078 mode_common_setup_;
2079 enddef;
2080 NeXTscreen := nextscrn;
2081 nextscreen := nextscrn;
2082
2083 % {\tt [email protected]}, for the Amiga ShowDVI previewer.
2084 mode_def nineone = %\[ NineOne (91x91) (91dpi)
2085 mode_param (pixels_per_inch, 91);
2086 mode_param (blacker, 0);
2087 mode_param (fillin, 0);
2088 mode_param (o_correction, .2);
2089 mode_common_setup_;
2090 enddef;
2091 NineOne := nineone;
2092
2093 % From {\tt [email protected]}, 21 April 1993.
2094 % Make TFM files only.
2095 mode_def nullmode = %\[ TFM files only (101dpi)
2096 % The resolution is irrelevant, but \MF\ always ships out
2097 % characters, so don't use the default huge |proof| resolution.
2098 mode_param (pixels_per_inch, 101);
2099 mode_param (proofing, -1);
2100 mode_param (fontmaking, 1);
2101 enddef;
2102
2103 % {\tt [email protected]}, for the Amiga ShowDVI previewer.
2104 mode_def onetz = %\[ OneTwoZero (120/120) (120dpi)
2105 mode_param (pixels_per_inch, 120);
2106 mode_param (blacker, 0);
2107 mode_param (fillin, 0);
2108 mode_param (o_correction, .2);
2109 mode_common_setup_;
2110 enddef;
2111 OneTwoZero := onetz;
2112
2113 % From {\tt [email protected]} and {\tt [email protected]}.
2114 mode_def ocessfz = %\[ OCE 6750-PS (508dpi)
2115 mode_param (pixels_per_inch, 508);
2116 mode_param (blacker, 0);
2117 mode_param (fillin, 0);
2118 mode_param (o_correction, .7);
2119 mode_common_setup_;
2120 enddef;
2121 OCESixSevenFiveZeroPS := ocessfz;
2122
2123 % From {\tt [email protected]}.
2124 mode_def okidata = %\[ Okidata (240x288dpi)
2125 mode_param (pixels_per_inch, 240);
2126 mode_param (aspect_ratio, 288 / pixels_per_inch);
2127 mode_param (blacker, 0);
2128 mode_param (fillin, 0);
2129 mode_param (o_correction, .2);
2130 mode_common_setup_;
2131 enddef;
2132 okihi := okidata;
2133
2134 mode_def okidatal = %\[ Okidata landscape (288x240dpi)
2135 okidata_;
2136 landscape;
2137 enddef;
2138
2139 % {\tt [email protected]}. For the dark smoothing mode.
2140 mode_def okifte = %\[ Okidata 410e in 600DPI mode (600dpi)
2141 mode_param (pixels_per_inch, 600);
2142 mode_param (blacker, .6);
2143 mode_param (fillin, .1);
2144 mode_param (o_correction, .85);
2145 mode_common_setup_;
2146 enddef;
2147 okifourten := okifte;
2148
2149 % From {\tt AMSmodes.def}.
2150 mode_def pcscreen = %\[ also, e.g., high-resolution Suns (118dpi)
2151 mode_param (pixels_per_inch, 118);
2152 mode_param (blacker, .5);
2153 mode_param (fillin, .1);
2154 mode_param (o_correction, .3);
2155 mode_common_setup_;
2156 enddef;
2157
2158 % {\tt [email protected]}, 7 June 1995. With the existing
2159 % |bitgraph| and |pcscreen| modes, `m' looks bad: a long vertical
2160 % line extends higher than the letter itself.
2161 mode_def pcprevw = %\[ PC screen preview (118dpi)
2162 mode_param (pixels_per_inch, 118);
2163 mode_param (blacker, .2);
2164 mode_param (fillin, 0);
2165 mode_param (o_correction, .2);
2166 mode_common_setup_;
2167 enddef;
2168
2169 % Tektronix Color PostScript printer, from {\tt craig@[email protected]}
2170 % on 14 January 1993. He writes: This is a thermal wax paper printer.
2171 % The values were determined using the {\tt cmr10} and {\tt cmti10} fonts.
2172 % The generated fonts look reasonable, although vertical lines and
2173 % things like the {\tt [}, {\tt ]}, and {\tt /} characters are pretty thin.
2174 mode_def phaser = %\[ Tektronix Phaser PXi (300dpi)
2175 mode_param (pixels_per_inch, 300);
2176 mode_param (blacker, 1.1);
2177 mode_param (fillin, 0);
2178 mode_param (o_correction, 1);
2179 mode_common_setup_;
2180 enddef;
2181
2182 % From {\tt [email protected]} (Metod Kozelj), 30 July 1998.
2183 % Parameters other than |blacker| have little effect.
2184 mode_def phaserfs = %\[ Tektronix Phaser 560 (1200dpi)
2185 mode_param (pixels_per_inch, 1200);
2186 mode_param (blacker, 0);
2187 mode_param (fillin, 0);
2188 mode_param (o_correction, 1);
2189 mode_common_setup_;
2190 enddef;
2191 phaserfivesixzero := phaserfs;
2192
2193 % Tektronix Phaser 350 is a 600-by-300 colour wax printer.
2194 % From {\tt [email protected]} (Dag Langmyhr), 10 January 1997.
2195 % Perhaps too fat at small sizes (5$\,$pt) but looks OK for 8$\,$pt and more.
2196 mode_def phasertf = %\[ Tektronix Phaser 350 (600x300dpi)
2197 mode_param (pixels_per_inch, 600);
2198 mode_param (aspect_ratio, 300/pixels_per_inch);
2199 mode_param (blacker, 0);
2200 mode_param (fillin, 0);
2201 mode_param (o_correction, .6);
2202 mode_common_setup_;
2203 enddef;
2204
2205 mode_def phasertl = %\[ Tektronix Phaser 350 landscape (300x600)
2206 phasertf_;
2207 landscape;
2208 enddef;
2209 phasertfl := phasertl;
2210
2211 % From Aries Arditi {\tt <[email protected]>}, 3 February 1998.
2212 % This definition makes one pixel one point, which is convenient when
2213 % you want to image-process the letter images after rendering, and don't
2214 % want to add any device corrections. If you want to grab the images off
2215 % the screen, it's useful to add lines to the definition, as well:
2216 %
2217 %%\begingroup \tt \catcode`\_=12 \obeyspaces
2218 % |mode_param (proofing, 1);
2219 % extra_endchar:=extra_endchar\&"showit";
2220 % extra_setup := extra_setup\&"def openit = openwindow currentwindow from
2221 % origin to (screen_rows,screen_cols) at (0,50) enddef";
2222 %%\endgroup
2223 mode_def pixpt = %\[ one pixel per point (72.27dpi)
2224 mode_param (pixels_per_inch, 72.27);
2225 mode_param (blacker, 0);
2226 mode_param (fillin, 0);
2227 mode_param (o_correction, 1);
2228 mode_common_setup_;
2229 enddef;
2230
2231 % For Hans Hagen and Mikael Sundqvist's use of bitmaps, December 2023.
2232 mode_def potrace = %\[ potrace use in LMTX
2233 mode_param (pixels_per_inch, 2 * 3600);
2234 mode_param (blacker, 0);
2235 mode_param (fillin, 0);
2236 mode_param (o_correction, 1);
2237 mode_common_setup_;
2238 enddef;
2239
2240 % This is a write-white PostScript laser-setter, made by a Xerox
2241 % subsidiary. Its true aspect ratio is 1200$\,$dpi horizontally and
2242 % 600$\,$dpi vertically, but {\tt [email protected]} says that the
2243 % printer hides this, and PostScript programs should treat it as having
2244 % a square aspect ratio. But {\tt [email protected]} says that
2245 % using the nonsquare aspect ratio produces identical output and uses
2246 % only half the disk space. He also says the fonts are much too dark
2247 % in general, and produce invisible diagonals in the CM typewriter
2248 % fonts---but other changes either produce errors or dark output.
2249 %
2250 % Printware's headquarters is in Minnesota; telephone (612) 456-1400.
2251 mode_def prntware = %\[ Printware 720IQ (1200dpi)
2252 mode_param (pixels_per_inch, 1200);
2253 mode_param (blacker, 0);
2254 mode_param (fillin, 0);
2255 mode_param (o_correction, 1);
2256 mode_common_setup_;
2257 enddef;
2258 PrintwareSevenTwoZeroIQ := prntware;
2259 printware := prntware;
2260
2261 % From John Gourlay. See {\sl TUGboat} 8(2), page 133.
2262 mode_def qms = %\[ QMS (Xerox engine) (300dpi)
2263 mode_param (pixels_per_inch, 300);
2264 mode_param (blacker, .6);
2265 mode_param (blacker_min, 2);
2266 mode_param (fillin, -.3);
2267 mode_param (o_correction, .6);
2268 mode_common_setup_;
2269 mode_write_white_setup_;
2270 enddef;
2271
2272 % From {\tt [email protected]}, 24 June 1993.
2273 % With the QMSOneSevenZeroZero mode, the left stem of `M'
2274 % in {\tt cmr10} vanishes completely.
2275 mode_def qmsostf = %\[ QMS 1725 (600dpi)
2276 mode_param (pixels_per_inch, 600);
2277 mode_param (blacker, 1);
2278 mode_param (blacker_min, 2);
2279 mode_param (fillin, 0);
2280 mode_param (o_correction, 1);
2281 mode_common_setup_;
2282 mode_write_white_setup_;
2283 enddef;
2284 QMSOneSevenTwoFive := qmsostf;
2285
2286 % From {\tt [email protected]}, 24 March 1993.
2287 % {\tt [email protected]} says this print has a CanonNX engine
2288 % switchable between 300 and 600$\,$dpi.
2289 %
2290 % From {\tt [email protected]} (Mimi Burbank), 12 September 1996:
2291 % $\ldots$ When I found the note about the left stem of the `M'
2292 % disappearing I was concerned.
2293 %
2294 % The error, I believe, is due to the fact that the font is generated at
2295 % 600$\,$dpi, and was most likely printed on a QMS printer with 300$\,$dpi
2296 % resolution. I just had the same thing happen to me, but with our QMS
2297 % 860 set at 600dpi (the default for only one of our printers) the
2298 % output was beautiful! (I printed the same ps file on a QMS 2000 with
2299 % 300$\,$dpi resolution, and on a QMS 860 with 600$\,$dpi resolution.)
2300 mode_def qmsoszz = %\[ QMS 1700 (600dpi)
2301 mode_param (pixels_per_inch, 600);
2302 mode_param (blacker, .2);
2303 mode_param (blacker_min, 2);
2304 mode_param (fillin, 0);
2305 mode_param (o_correction, 1);
2306 mode_common_setup_;
2307 mode_write_white_setup_;
2308 enddef;
2309 QMSOneSevenZeroZero := qmsoszz;
2310
2311 % From {\tt [email protected]}, 28 September 1996.
2312 mode_def qmstftf = %\[ QMS 2425 (1200dpi)
2313 mode_param (pixels_per_inch, 1200);
2314 mode_param (blacker, .3);
2315 mode_param (fillin, .5);
2316 mode_param (o_correction, 1);
2317 mode_common_setup_;
2318 enddef;
2319 QMSTwoFourTwoFive := qmstftf;
2320
2321 % These values from Stan Osborne, {\sl TUGboat} 8(2), page 134.
2322 mode_def ricoh = %\[ e.g., TI Omnilaser (300dpi)
2323 mode_param (pixels_per_inch, 300);
2324 mode_param (blacker, .2);
2325 mode_param (blacker_min, 2);
2326 mode_param (fillin, -.2);
2327 mode_param (o_correction, .5);
2328 mode_common_setup_;
2329 mode_write_white_setup_;
2330 enddef;
2331 RicohFourZeroEightZero := ricoh;
2332 RicohFortyEighty := ricoh;
2333
2334 % From {\tt [email protected]}. Apparently the engine is
2335 % different from the Ricoh 4080. With a larger value of |blacker|,
2336 % characters like the `e' in {\tt cmtt8} look bad.
2337 mode_def ricoha = %\[ e.g., IBM 4216 (300dpi)
2338 mode_param (pixels_per_inch, 300);
2339 mode_param (blacker, .2);
2340 mode_param (blacker_min, 2);
2341 mode_param (fillin, 0);
2342 mode_param (o_correction, .75);
2343 mode_common_setup_;
2344 mode_write_white_setup_;
2345 enddef;
2346 RicohA := ricoha;
2347 IBMFourTwoOneSix := ricoha;
2348
2349 % From John Sauter.
2350 mode_def ricohlp = %\[ e.g., DEC LN03 (300dpi)
2351 mode_param (pixels_per_inch, 300);
2352 mode_param (blacker, .65);
2353 mode_param (blacker_min, 2);
2354 mode_param (fillin, -.2);
2355 mode_param (o_correction, .5);
2356 mode_common_setup_;
2357 mode_write_white_setup_;
2358 enddef;
2359 RicohLP := ricohlp;
2360 LNOthree := ricohlp;
2361 LNZeroThree := ricohlp;
2362
2363 % From {\tt [email protected]} (Akihiro Nishida), 30 August 1996.
2364 % These printers are available only in Japan.
2365 mode_def ricohsp = %\[ Ricoh sp10ps/lp7200-ux (600dpi)
2366 mode_param (pixels_per_inch, 600);
2367 mode_param (blacker, 0);
2368 mode_param (fillin, 0.2);
2369 mode_param (o_correction, .6);
2370 mode_common_setup_;
2371 enddef;
2372
2373 % From {\tt [email protected]}. {\tt gil.cc.gatech.edu}
2374 % has different values; {\tt [email protected]} sets |blacker=.1|.
2375 % Corrected by {\tt [email protected]}, 28 August 1991.
2376 % The darkness knob on the printer has a much larger effect than
2377 % any of these parameters. {\tt [email protected]} points out
2378 % that the printer can operate at either 300$\,$dpi or 400$\,$dpi, and
2379 % if your fonts don't match the setting, naturally they won't look
2380 % very good. He says the following works in Dvips' {\tt config.ps} file
2381 % to set 400$\,$dpi:
2382 %%\begingroup \tt \catcode`\%=12 \catcode`\{=12 \catcode`\}=12 \obeyspaces
2383 % /SetResolution {
2384 % /setres where {
2385 % /setres get exec
2386 % }{
2387 % pop
2388 % } ifelse
2389 % } def
2390 % %%BeginFeature *SetResolution 400
2391 % 400 SetResolution
2392 % %%EndFeature
2393 % %%EndSetup
2394 %%\endgroup
2395 %
2396 % (This is the file {\tt resolution400.ps} supplied with NeWSprint.)
2397 % {\tt [email protected]} only got this work by downloading the code
2398 % via an extra header file, i.e., having this in the Dvips config file:
2399 %%\begingroup \tt \obeyspaces
2400 % M sparcptr
2401 % D 400
2402 % h resolution400.ps
2403 %%\endgroup
2404 %
2405 mode_def sparcptr = %\[ Sun SPARCprinter (400dpi)
2406 mode_param (pixels_per_inch, 400);
2407 mode_param (blacker, .25);
2408 mode_param (fillin, .2);
2409 mode_param (o_correction, .6);
2410 mode_common_setup_;
2411 enddef;
2412 SparcPrinter := sparcptr;
2413
2414 % From {\tt [email protected]}.
2415 mode_def starnlt = %\[ Star NL-10 (240x216dpi)
2416 mode_param (pixels_per_inch, 240);
2417 mode_param (aspect_ratio, 216 / pixels_per_inch);
2418 mode_param (blacker, 0);
2419 mode_param (fillin, .2);
2420 mode_param (o_correction, .4);
2421 mode_common_setup_;
2422 enddef;
2423 StarNLOneZero := starnlt;
2424
2425 mode_def starnltl = %\[ Star NL-10 landscape (216x240dpi)
2426 starnlt_;
2427 landscape;
2428 enddef;
2429
2430 % From {\tt [email protected]}, 26 November 1998. I have tested
2431 % the default stylewriter mode in modes.mf v3.4 with Oz\TeX\ and my
2432 % StyleWriter II, and still output is too light, particularly the serifs
2433 % and thin cusps such as in CMR's small e, c, t, b and d. Thus I cooked
2434 % up this mode that prints output similar to a standard system font (I
2435 % compared text output with Minion Web as it comes with Internet
2436 % Explorer 4). In general I'd suggest that this mode definition is
2437 % appropriate for all inkjet printers using a BJC-02 ink cartridge.
2438 mode_def styletwo = %\[ Apple StyleWriter II (360dpi)
2439 mode_param (pixels_per_inch, 360);
2440 mode_param (blacker, 0.25);
2441 mode_param (fillin, 0);
2442 mode_param (o_correction, 0.6);
2443 mode_common_setup_;
2444 enddef;
2445 swtwo := styletwo;
2446
2447 % |stylewriter| mode added by Andrew Trevorrow
2448 % {\tt <[email protected]>} for Oz\TeX\ users. All
2449 % parameters (except |pixels_per_inch|) are the same as the |cx| mode so
2450 % that PK files can be shared by both types of printers.
2451 %
2452 % With |blacker=0|, hbar is indistinguishable for h, i.e., the bar
2453 % disappears. Thus 0.1. From Wulf Hofbauer {\tt <[email protected]>},
2454 % 5 June 1998.
2455 mode_def stylewri = %\[ Apple StyleWriter (360dpi)
2456 mode_param (pixels_per_inch, 360);
2457 mode_param (blacker, 0.1);
2458 mode_param (fillin, .2);
2459 mode_param (o_correction, .6);
2460 mode_common_setup_;
2461 enddef;
2462 stylewriter := stylewri;
2463 stylewr := stylewri;
2464 % From {\tt [email protected] (Joaquim Baptista [pxQuim])}. I find
2465 % |epstylus| far too dark. It seems to me that plain values of 0 to
2466 % |blacker| and |fillin| work perfectly with values of |o_correction| in
2467 % the range of .6 to .8. I ended up using [this mode:]
2468 epstylwr := stylewri;
2469 % Andrew defines |sw| as well, but I am reluctant to use such a
2470 % potentially common identifier --{\tt [email protected]}, 8 October 1996.
2471
2472 % From {\tt [email protected]}. Sun monitors have several
2473 % different resolutions, but this seems the most common of the lot.
2474 % Use |pcscreen| for high-resolution monitors.
2475 mode_def sun = %\[ Sun and BBN Bitgraph (85dpi)
2476 mode_param (pixels_per_inch, 85);
2477 mode_param (blacker, .35);
2478 mode_param (fillin, .1);
2479 mode_param (o_correction, .3);
2480 mode_common_setup_;
2481 enddef;
2482
2483 mode_def supre = %\[ Ultre*setter (2400dpi)
2484 mode_param (pixels_per_inch, 2400);
2485 mode_param (blacker, 0);
2486 mode_param (fillin, 0);
2487 mode_param (o_correction, 1);
2488 mode_common_setup_;
2489 enddef;
2490
2491 mode_def toshiba = %\[ Toshiba 13XX, EpsonLQ (180dpi)
2492 mode_param (pixels_per_inch, 180);
2493 mode_param (blacker, 0);
2494 mode_param (fillin, 0);
2495 mode_param (o_correction, .2);
2496 mode_common_setup_;
2497 enddef;
2498 epsonlq := toshiba;
2499
2500 mode_def ultre = %\[ Ultre*setter (1200dpi)
2501 mode_param (pixels_per_inch, 1200);
2502 mode_param (blacker, 0);
2503 mode_param (fillin, 0);
2504 mode_param (o_correction, 1);
2505 mode_common_setup_;
2506 enddef;
2507 Prism := ultre;
2508
2509 % From {\tt [email protected]}.
2510 mode_def vs = %\[ VAXstation monitor (78dpi)
2511 mode_param (pixels_per_inch, 78);
2512 mode_param (blacker, 0);
2513 mode_param (fillin, 0);
2514 mode_param (o_correction, 0);
2515 mode_common_setup_;
2516 enddef;
2517 VAXstation := vs;
2518 gpx := vs;
2519
2520 % From {\tt [email protected]}, 23 August 1991.
2521 mode_def vtftzz = %\[ Varityper 4200 B-P (1800dpi)
2522 mode_param (pixels_per_inch, 1800);
2523 mode_param (blacker, 0);
2524 mode_param (fillin, 0);
2525 mode_param (o_correction, 1);
2526 mode_common_setup_;
2527 enddef;
2528 VarityperFourTwoZeroZero := vtftzz;
2529
2530 % From {\tt [email protected]}, 26 February 1992.
2531 mode_def vtftzzhi = %\[ Varityper 4300P (2400dpi)
2532 mode_param (pixels_per_inch, 2400);
2533 mode_param (blacker, 0);
2534 mode_param (fillin, 0);
2535 mode_param (o_correction, 1);
2536 mode_common_setup_;
2537 enddef;
2538 VarityperFourThreeZeroZeroHi := vtftzzhi;
2539
2540 % From {\tt [email protected]}, 26 February 1992.
2541 mode_def vtftzzlo = %\[ Varityper 4300P (1200dpi)
2542 mode_param (pixels_per_inch, 1200);
2543 mode_param (blacker, 2); % used to be 3.5, see |lexmarkr| comments.
2544 mode_param (fillin, 0);
2545 mode_param (o_correction, 1);
2546 mode_common_setup_;
2547 enddef;
2548 VarityperFourThreeZeroZeroLo := vtftzzlo;
2549
2550 % From {\tt [email protected]}. This can also be used for the Autologic's
2551 % APS6 cut sheet dry process printer. For that printer, perhaps
2552 % |blacker=0.8| is better. For the Varityper, though, at |blacker=0.8|
2553 % the dots of the umlaut start to fill in. For |blacker<0.6|, the tops
2554 % and bottoms of lowercase g's and s's in {\tt cmr5} drop out.
2555 mode_def vtfzszw = %\[ Varitype 5060W, APS 6 (600dpi)
2556 mode_param (pixels_per_inch, 600);
2557 mode_param (blacker, .7);
2558 mode_param (fillin, 0);
2559 mode_param (o_correction, 1);
2560 mode_common_setup_;
2561 enddef;
2562 VarityperFiveZeroSixZeroW := vtfzszw;
2563 APSSixMed := vtfzszw;
2564
2565 % The worst problem is toner irregularity. This may be the same printer
2566 % as the IBM 4250.
2567 mode_def vtszz = %\[ Varityper Laser 600 (600dpi)
2568 mode_param (pixels_per_inch, 600);
2569 mode_param (blacker, 0);
2570 mode_param (fillin, 0);
2571 mode_param (o_correction, 1);
2572 mode_common_setup_;
2573 enddef;
2574 VarityperSixZeroZero := vtszz;
2575 VTSix := vtszz;
2576 varityper := vtszz;
2577
2578 % Some information about Xerox printers, from {\tt [email protected]}:
2579 % The Docutech system and the 4135 have the same engine.
2580 % The 4050, 4075 and 4090 have the same engine.
2581 % The 4650 has a unique engine.
2582 % The 4850 has a unique engine.
2583
2584 % From {\tt [email protected]}, for enhanced resolution mode. In
2585 % 600x600 mode, |ljfour| works ok.
2586 mode_def xpstzz = %\[ Xerox Phaser 6200DP (2400x600dpi)
2587 mode_param (pixels_per_inch, 2400);
2588 mode_param (aspect_ratio, 600 / pixels_per_inch);
2589 mode_param (blacker, 0);
2590 mode_param (fillin, 0);
2591 mode_param (o_correction, 1);
2592 mode_common_setup_;
2593 enddef;
2594 XeroxPhaserSixTwoZeroZeroDP := xpstzz;
2595
2596 mode_def xpstzzl = %\[ Xerox Phaser 6200DP landscape (600x2400dpi)
2597 xpstzz_;
2598 landscape;
2599 enddef;
2600
2601
2602 % From {\tt [email protected]}. These values are mostly guesses.
2603 mode_def xrxesnz = %\[ Xerox 8790 or 4045 (300dpi)
2604 mode_param (pixels_per_inch, 300);
2605 mode_param (blacker, 0.4);
2606 mode_param (blacker_min, 2);
2607 mode_param (fillin, 0);
2608 mode_param (o_correction, 0.2);
2609 mode_common_setup_;
2610 mode_write_white_setup_;
2611 enddef;
2612 XeroxEightSevenNineZero := xrxesnz;
2613
2614 % From {\tt [email protected]}. Many variations for different fonts.
2615 % {\tt [email protected]} says this works for the Xerox 4700, also.
2616 mode_def xrxfzfz = %\[ Xerox 4050/4075/4090/4700 (300dpi)
2617 mode_param (pixels_per_inch, 300);
2618 mode_param (blacker, .7);
2619 mode_param (fillin, 0);
2620 mode_param (o_correction, .5);
2621 mode_common_setup_;
2622 enddef;
2623 XeroxFourZeroFiveZero := xrxfzfz;
2624
2625 % From {\tt [email protected]}. He sent many variations of this,
2626 % for different fonts. I don't know a reasonable way to put them in
2627 % yet, so this is just the basic entry.
2628 mode_def xrxnszz = %\[ Xerox 9700 (300dpi)
2629 mode_param (pixels_per_inch, 300);
2630 mode_param (blacker, .7);
2631 mode_param (fillin, 0);
2632 mode_param (o_correction, .5);
2633 mode_common_setup_;
2634 enddef;
2635 XeroxNineSevenZeroZero := xrxnszz;
2636
2637 % From {\tt [email protected]}. These values may be improvable.
2638 mode_def xrxtszz = %\[ Xerox 3700 (300dpi)
2639 mode_param (pixels_per_inch, 300);
2640 mode_param (blacker, .85);
2641 mode_param (blacker_min, 2);
2642 mode_param (fillin, -.1);
2643 mode_param (o_correction, .5);
2644 mode_common_setup_;
2645 mode_write_white_setup_;
2646 enddef;
2647 XeroxThreeSevenZeroZero := xrxtszz;
2648
2649 mode_def help = %\[ What modes are available?
2650 for i = 1 upto number_of_modes:
2651 message mode_name[i];
2652 endfor;
2653 % Doesn't make sense to be able to do this twice, so forget this
2654 % definition after it's been used.
2655 save ?;
2656 enddef;
2657
2658 let mode_help = help_;
2659
2660 % These variables determine the size of \MF's (window system)
2661 % window for online output. These numbers should match whatever
2662 % the window system is told, or bizarre positioning of the output
2663 % in the window results. Properly implemented online device drivers
2664 % will use these values as the default size. The defaults here are
2665 % from {\tt plain.mf}.
2666 screen_rows := 400;
2667 screen_cols := 500;
2668
2669 % The mode most commonly used to make fonts here.
2670 localfont := ljfour;
2671
2672 %%\bye
2673 %%%% Local variables:
2674 %%%% page-delimiter: "^% here are"
2675 %%%% End: