| 1 |
%% @metafontfile{ |
| 2 |
%% filename="dummy.mf", |
| 3 |
%% filetype="Metafont: driver", |
| 4 |
%% author="K. Berry", |
| 5 |
%% email="[email protected]" |
| 6 |
%% codetable="ISO/ASCII", |
| 7 |
%% checksum = "01077 57 290 1988" , |
| 8 |
%% keywords="amsfonts, dummyfont, metafont , ams-tex, amstex ", |
| 9 |
%% abstract="This file generates dummy.tfm as distributed with AMS-TeX." |
| 10 |
%% docstring = "The checksum field above contains a CRC-16 |
| 11 |
%% checksum as the first value, followed by the |
| 12 |
%% equivalent of the standard UNIX wc (word |
| 13 |
%% count) utility output of lines, words, and |
| 14 |
%% characters. This is produced by Robert |
| 15 |
%% Solovay's checksum utility.", |
| 16 |
%% } |
| 17 |
% |
| 18 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 19 |
|
| 20 |
mode_def nullmode = % TFM files only |
| 21 |
proofing := -1; |
| 22 |
fontmaking := 1; |
| 23 |
enddef; |
| 24 |
|
| 25 |
mode := nullmode; |
| 26 |
mode_setup; |
| 27 |
|
| 28 |
% Defeat modes.mf's redefinition of font_face_byte -- it packs in the |
| 29 |
% designsize per the Metafontbook, but dummy.pl doesn't. |
| 30 |
let font_face_byte = gobble; |
| 31 |
|
| 32 |
% Make the string |s| be |n| bytes long. |
| 33 |
def BCPL_string (expr s, n) = |
| 34 |
for l := if length (s) >= n: n-1 else: length (s) fi: l |
| 35 |
for k := 1 upto l: , substring (k - 1, k) of s endfor |
| 36 |
for k := l + 2 upto n: , 0 endfor |
| 37 |
endfor |
| 38 |
enddef; |
| 39 |
|
| 40 |
headerbyte 1: 0, 5, hex "39", hex "77"; % checksum 1 234 567 in octal |
| 41 |
|
| 42 |
designsize := 10; % header bytes 5-8 |
| 43 |
|
| 44 |
% Use font_coding_scheme (from plain) in case end has been redefined to |
| 45 |
% produce the Xerox-world info, as modes.mf does. But do the headerbyte |
| 46 |
% ourselves as well, in case we're not using modes.mf. |
| 47 |
font_coding_scheme := "NULL FONT FOR SYNTAX CHECKING"; |
| 48 |
headerbyte 9: BCPL_string (font_coding_scheme_, 40); |
| 49 |
|
| 50 |
font_identifier := "UNSPECIFIED"; |
| 51 |
headerbyte 49: BCPL_string (font_identifier_, 20); |
| 52 |
|
| 53 |
headerbyte 72: 0; % face is zero for mrr, + 254 - 2 * designsize |
| 54 |
|
| 55 |
fontdimen 22: 0; % 22 zero font dimens---enough for math fonts. |
| 56 |
|
| 57 |
end. |