home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / unix_c / printers / mkfont.tar < prev    next >
Tape Archive  |  1989-03-04  |  56.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Tape Archive (archive/tar).

You can browse this item here: mkfont.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file mkfont/, mode 755 , uid 243 , gid 12 , size 0 , seconds 4404046140 default
98% file data default
100% TrID Sybase iAnywhere database files default (weak)
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6d 6b 66 6f 6e 74 2f 00 | 00 00 00 00 00 00 00 00 |mkfont/.|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 30 34 30 34 36 | 0 | 4404046|
|00000090| 31 34 30 20 20 20 35 33 | 30 36 00 20 00 00 00 00 |140 53|06. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 6d 6b 66 6f 6e 74 2f 53 | 68 61 72 46 69 6c 65 2e |mkfont/S|harFile.|
|00000210| 48 65 61 64 65 72 73 00 | 00 00 00 00 00 00 00 00 |Headers.|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000280| 20 20 20 31 31 33 37 20 | 20 34 34 30 34 30 34 36 | 1137 | 4404046|
|00000290| 31 34 31 20 20 31 30 33 | 37 30 00 20 00 00 00 00 |141 103|70. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 3d 3d 3d 20 6d 6b 66 6f | 6e 74 2e 73 68 61 72 20 |=== mkfo|nt.shar |
|00000410| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0a 46 72 6f 6d 20 70 |========|=.From p|
|00000430| 75 72 2d 65 65 21 6a 2e | 63 63 2e 70 75 72 64 75 |ur-ee!j.|cc.purdu|
|00000440| 65 2e 65 64 75 21 69 2e | 63 63 2e 70 75 72 64 75 |e.edu!i.|cc.purdu|
|00000450| 65 2e 65 64 75 21 70 75 | 72 64 75 65 21 67 61 74 |e.edu!pu|rdue!gat|
|00000460| 65 63 68 21 6e 63 61 72 | 21 61 6d 65 73 21 6e 65 |ech!ncar|!ames!ne|
|00000470| 63 6e 74 63 21 6e 63 6f | 61 73 74 21 61 6c 6c 62 |cntc!nco|ast!allb|
|00000480| 65 72 79 20 4d 6f 6e 20 | 41 70 72 20 20 34 20 32 |ery Mon |Apr 4 2|
|00000490| 31 3a 34 30 3a 31 39 20 | 45 53 54 20 31 39 38 38 |1:40:19 |EST 1988|
|000004a0| 0a 0a 63 6f 6d 70 2e 73 | 6f 75 72 63 65 73 2e 6d |..comp.s|ources.m|
|000004b0| 69 73 63 3a 20 56 6f 6c | 75 6d 65 20 32 2c 20 49 |isc: Vol|ume 2, I|
|000004c0| 73 73 75 65 20 38 34 0a | 53 75 62 6d 69 74 74 65 |ssue 84.|Submitte|
|000004d0| 64 2d 42 79 3a 20 22 44 | 75 61 6e 65 20 48 65 73 |d-By: "D|uane Hes|
|000004e0| 73 65 72 22 20 3c 73 79 | 73 61 64 40 74 69 6b 61 |ser" <sy|sad@tika|
|000004f0| 6c 2e 74 65 6c 74 6f 6e | 65 2e 63 6f 6d 3e 0a 41 |l.telton|e.com>.A|
|00000500| 72 63 68 69 76 65 2d 4e | 61 6d 65 3a 20 6d 6b 66 |rchive-N|ame: mkf|
|00000510| 6f 6e 74 0a 0a 54 68 65 | 72 65 20 61 72 65 20 74 |ont..The|re are t|
|00000520| 77 6f 20 63 6f 6d 70 6c | 65 6d 65 6e 74 61 72 79 |wo compl|ementary|
|00000530| 20 70 72 6f 67 72 61 6d | 73 20 65 6e 63 6c 6f 73 | program|s enclos|
|00000540| 65 64 20 68 65 72 65 2e | 0a 27 6d 6b 66 6f 6e 74 |ed here.|.'mkfont|
|00000550| 27 20 64 75 70 6c 69 63 | 61 74 65 73 20 74 68 65 |' duplic|ates the|
|00000560| 20 66 75 6e 63 74 69 6f | 6e 20 6f 66 20 22 6d 61 | functio|n of "ma|
|00000570| 6b 65 64 65 76 22 20 74 | 6f 20 63 72 65 61 74 65 |kedev" t|o create|
|00000580| 20 62 69 6e 61 72 79 0a | 66 6f 6e 74 20 66 69 6c | binary.|font fil|
|00000590| 65 73 2c 20 72 65 61 64 | 61 62 6c 65 20 62 79 20 |es, read|able by |
|000005a0| 64 69 74 72 6f 66 66 2c | 20 66 72 6f 6d 20 61 73 |ditroff,| from as|
|000005b0| 63 69 69 20 64 65 73 63 | 72 69 70 74 69 6f 6e 73 |cii desc|riptions|
|000005c0| 2e 0a 27 72 64 66 6f 6e | 74 27 20 72 65 76 65 72 |..'rdfon|t' rever|
|000005d0| 73 65 73 20 74 68 65 20 | 70 72 6f 63 65 73 73 2c |ses the |process,|
|000005e0| 20 67 65 6e 65 72 61 74 | 69 6e 67 20 61 73 63 69 | generat|ing asci|
|000005f0| 69 20 64 65 73 63 72 69 | 70 74 69 6f 6e 73 0a 66 |i descri|ptions.f|
|00000600| 6f 72 6d 20 65 78 69 73 | 74 69 6e 67 20 62 69 6e |orm exis|ting bin|
|00000610| 61 72 79 20 66 6f 6e 74 | 20 66 69 6c 65 73 2e 20 |ary font| files. |
|00000620| 20 49 74 27 73 20 61 6c | 6c 20 69 6e 20 74 68 65 | It's al|l in the|
|00000630| 20 52 45 41 44 4d 45 20 | 61 6e 64 0a 6d 61 6e 20 | README |and.man |
|00000640| 70 61 67 65 2e 0a 2d 2d | 2d 2d 2d 2d 20 63 75 74 |page..--|---- cut|
|00000650| 20 68 65 72 65 20 2d 2d | 2d 2d 2d 2d 2d 2d 0a 00 | here --|------..|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 6d 6b 66 6f 6e 74 2f 52 | 45 41 44 4d 45 00 00 00 |mkfont/R|EADME...|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000880| 20 20 20 33 37 30 35 20 | 20 34 34 30 34 30 34 36 | 3705 | 4404046|
|00000890| 31 31 31 20 20 20 36 32 | 35 36 00 20 00 00 00 00 |111 62|56. ....|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 4d 6b 66 6f 6e 74 20 64 | 75 70 6c 69 63 61 74 65 |Mkfont d|uplicate|
|00000a10| 73 20 20 74 68 65 20 61 | 63 74 69 6f 6e 73 20 20 |s the a|ctions |
|00000a20| 28 6d 6f 72 65 20 6f 72 | 20 20 6c 65 73 73 29 20 |(more or| less) |
|00000a30| 6f 66 20 20 74 68 65 20 | 41 54 54 20 20 22 6d 61 |of the |ATT "ma|
|00000a40| 6b 65 64 65 76 22 0a 70 | 72 6f 67 72 61 6d 2c 20 |kedev".p|rogram, |
|00000a50| 20 74 70 20 20 70 72 6f | 64 75 63 65 20 20 62 69 | tp pro|duce bi|
|00000a60| 6e 61 72 79 20 20 66 6f | 6e 74 20 20 66 69 6c 65 |nary fo|nt file|
|00000a70| 73 20 20 66 6f 72 20 20 | 64 69 74 72 6f 66 66 2c |s for |ditroff,|
|00000a80| 20 20 66 72 6f 6d 20 20 | 61 73 63 69 69 0a 64 65 | from |ascii.de|
|00000a90| 73 63 72 69 70 74 69 6f | 6e 73 20 66 6f 72 20 74 |scriptio|ns for t|
|00000aa0| 68 65 20 66 6f 6e 74 73 | 2e 20 20 20 52 64 66 6f |he fonts|. Rdfo|
|00000ab0| 6e 74 20 77 69 6c 6c 20 | 72 65 61 64 20 20 74 68 |nt will |read th|
|00000ac0| 65 20 62 69 6e 61 72 79 | 20 66 6f 6e 74 20 20 66 |e binary| font f|
|00000ad0| 69 6c 65 73 0a 61 6e 64 | 20 70 72 6f 64 75 63 65 |iles.and| produce|
|00000ae0| 20 61 6e 20 20 61 73 63 | 69 69 20 65 71 75 69 76 | an asc|ii equiv|
|00000af0| 61 6c 65 6e 74 20 20 28 | 77 68 69 63 68 20 6d 61 |alent (|which ma|
|00000b00| 79 20 74 68 65 6e 20 20 | 62 65 20 72 65 2d 63 6f |y then |be re-co|
|00000b10| 6d 70 69 6c 65 64 29 20 | 20 62 79 0a 6d 6b 66 6f |mpiled) | by.mkfo|
|00000b20| 6e 74 2e 0a 0a 54 68 65 | 73 65 20 70 72 6f 67 72 |nt...The|se progr|
|00000b30| 61 6d 73 20 77 65 72 65 | 20 77 72 69 74 74 65 6e |ams were| written|
|00000b40| 20 6f 6e 20 61 20 50 79 | 72 61 6d 69 64 20 39 30 | on a Py|ramid 90|
|00000b50| 78 20 69 6e 20 74 68 65 | 20 75 63 62 20 75 6e 69 |x in the| ucb uni|
|00000b60| 76 65 72 73 65 2c 20 20 | 61 6e 64 0a 73 68 6f 75 |verse, |and.shou|
|00000b70| 6c 64 20 63 6f 6d 70 69 | 6c 65 20 66 61 69 72 6c |ld compi|le fairl|
|00000b80| 79 20 20 72 65 61 64 69 | 6c 79 20 69 6e 20 20 61 |y readi|ly in a|
|00000b90| 6e 79 20 42 53 44 20 20 | 65 6e 76 69 72 6f 6e 6d |ny BSD |environm|
|00000ba0| 65 6e 74 3b 20 74 68 65 | 79 27 76 65 20 20 62 65 |ent; the|y've be|
|00000bb0| 65 6e 0a 63 6f 6d 70 69 | 6c 65 64 20 69 6e 20 74 |en.compi|led in t|
|00000bc0| 68 65 20 61 74 74 20 20 | 65 6e 76 69 72 6f 6e 6d |he att |environm|
|00000bd0| 65 6e 74 2c 20 61 6e 64 | 20 6f 6e 20 61 20 20 56 |ent, and| on a V|
|00000be0| 61 78 20 37 35 30 20 75 | 6e 64 65 72 20 34 2e 33 |ax 750 u|nder 4.3|
|00000bf0| 42 53 44 20 20 28 62 75 | 74 0a 6e 6f 74 20 72 65 |BSD (bu|t.not re|
|00000c00| 61 6c 6c 79 20 74 65 73 | 74 65 64 20 20 69 6e 20 |ally tes|ted in |
|00000c10| 74 68 6f 73 65 20 65 6e | 76 69 72 6f 6e 6d 65 6e |those en|vironmen|
|00000c20| 74 73 29 2e 20 20 20 43 | 68 65 63 6b 20 74 68 65 |ts). C|heck the|
|00000c30| 20 20 43 46 4c 41 47 53 | 20 69 6e 20 20 74 68 65 | CFLAGS| in the|
|00000c40| 0a 4d 61 6b 65 66 69 6c | 65 20 66 6f 72 20 53 59 |.Makefil|e for SY|
|00000c50| 53 35 2e 20 20 54 68 65 | 72 65 20 69 73 20 61 6c |S5. The|re is al|
|00000c60| 73 6f 20 61 20 63 61 6b | 65 66 69 6c 65 2c 20 66 |so a cak|efile, f|
|00000c70| 6f 72 20 74 68 6f 73 65 | 20 73 6f 20 69 6e 63 6c |or those| so incl|
|00000c80| 69 6e 65 64 2e 0a 46 6f | 72 20 73 6f 6d 65 20 73 |ined..Fo|r some s|
|00000c90| 79 73 74 65 6d 73 2c 20 | 79 6f 75 20 6d 61 79 20 |ystems, |you may |
|00000ca0| 68 61 76 65 20 74 6f 20 | 64 65 61 6c 20 77 69 74 |have to |deal wit|
|00000cb0| 68 20 74 68 65 20 33 2d | 61 72 67 75 6d 65 6e 74 |h the 3-|argument|
|00000cc0| 20 6f 70 65 6e 28 29 20 | 63 61 6c 6c 73 2e 0a 0a | open() |calls...|
|00000cd0| 54 68 65 20 70 72 6f 67 | 72 61 6d 73 20 77 65 72 |The prog|rams wer|
|00000ce0| 65 20 77 72 69 74 74 65 | 6e 20 20 61 66 74 65 72 |e writte|n after|
|00000cf0| 20 50 79 72 61 6d 69 64 | 20 73 75 70 70 6c 69 65 | Pyramid| supplie|
|00000d00| 64 20 20 64 69 74 72 6f | 66 66 20 77 69 74 68 20 |d ditro|ff with |
|00000d10| 61 6e 20 20 4f 53 0a 75 | 70 67 72 61 64 65 2c 20 |an OS.u|pgrade, |
|00000d20| 20 62 75 74 20 20 64 69 | 64 6e 27 74 20 20 73 75 | but di|dn't su|
|00000d30| 70 70 6c 79 20 20 6d 61 | 6b 65 64 65 76 2e 20 20 |pply ma|kedev. |
|00000d40| 20 20 22 6d 61 6b 65 64 | 65 76 22 20 20 68 61 73 | "maked|ev" has|
|00000d50| 20 20 73 69 6e 63 65 20 | 20 62 65 65 6e 0a 73 75 | since | been.su|
|00000d60| 70 70 6c 69 65 64 2c 20 | 61 6e 64 20 6d 6b 66 6f |pplied, |and mkfo|
|00000d70| 6e 74 20 63 68 65 63 6b | 65 64 20 61 67 61 69 6e |nt check|ed again|
|00000d80| 73 74 20 69 74 2e 0a 0a | 4d 6b 66 6f 6e 74 20 68 |st it...|Mkfont h|
|00000d90| 61 73 20 20 62 65 65 6e | 20 75 73 65 64 20 20 74 |as been| used t|
|00000da0| 6f 20 63 6f 6d 70 69 6c | 65 20 20 50 6f 73 74 73 |o compil|e Posts|
|00000db0| 63 72 69 70 74 20 66 6f | 6e 74 73 20 20 66 72 6f |cript fo|nts fro|
|00000dc0| 6d 20 20 64 65 73 63 72 | 69 70 74 69 6f 6e 0a 66 |m descr|iption.f|
|00000dd0| 69 6c 65 73 20 70 6f 73 | 74 65 64 20 74 6f 20 55 |iles pos|ted to U|
|00000de0| 53 45 4e 45 54 20 69 6e | 20 4d 61 79 20 6f 66 20 |SENET in| May of |
|00000df0| 31 39 38 36 20 62 79 20 | 53 74 65 70 68 65 6e 20 |1986 by |Stephen |
|00000e00| 46 72 65 64 65 20 61 74 | 20 55 20 6f 66 20 4e 53 |Frede at| U of NS|
|00000e10| 57 20 20 69 6e 0a 53 79 | 64 6e 65 79 2c 20 41 75 |W in.Sy|dney, Au|
|00000e20| 73 74 72 61 6c 69 61 2d | 2d 79 6f 75 20 20 73 68 |stralia-|-you sh|
|00000e30| 6f 75 6c 64 20 20 62 65 | 20 61 62 6c 65 20 20 74 |ould be| able t|
|00000e40| 6f 20 20 66 69 6e 64 20 | 74 68 65 6d 20 20 69 6e |o find |them in|
|00000e50| 20 20 61 20 20 73 6f 75 | 72 63 65 73 0a 61 72 63 | a sou|rces.arc|
|00000e60| 68 69 76 65 20 73 6f 6d | 65 77 68 65 72 65 2c 20 |hive som|ewhere, |
|00000e70| 69 66 20 79 6f 75 20 6e | 65 65 64 20 74 68 65 6d |if you n|eed them|
|00000e80| 2e 0a 0a 49 20 61 6d 20 | 74 68 65 20 61 75 74 68 |...I am |the auth|
|00000e90| 6f 72 20 6f 66 20 20 74 | 68 65 73 65 20 70 72 6f |or of t|hese pro|
|00000ea0| 67 72 61 6d 73 2c 20 61 | 6e 64 20 49 20 20 73 75 |grams, a|nd I su|
|00000eb0| 62 6d 69 74 20 74 68 65 | 6d 20 66 6f 72 20 70 75 |bmit the|m for pu|
|00000ec0| 62 6c 69 63 20 20 75 73 | 65 0a 77 69 74 68 6f 75 |blic us|e.withou|
|00000ed0| 74 20 72 65 73 74 72 69 | 63 74 69 6f 6e 2e 0a 0a |t restri|ction...|
|00000ee0| 43 41 56 45 41 54 53 0a | 54 68 65 20 62 69 6e 61 |CAVEATS.|The bina|
|00000ef0| 72 79 20 66 6f 6e 74 20 | 20 66 69 6c 65 73 20 70 |ry font | files p|
|00000f00| 72 6f 64 75 63 65 64 20 | 20 62 79 20 6d 6b 66 6f |roduced | by mkfo|
|00000f10| 6e 74 20 77 69 6c 6c 20 | 20 64 69 66 66 65 72 20 |nt will | differ |
|00000f20| 73 6c 69 67 68 74 6c 79 | 20 20 66 72 6f 6d 0a 74 |slightly| from.t|
|00000f30| 68 6f 73 65 20 70 72 6f | 64 75 63 65 64 20 62 79 |hose pro|duced by|
|00000f40| 20 6d 61 6b 65 64 65 76 | 20 69 66 20 74 68 65 72 | makedev| if ther|
|00000f50| 65 20 61 72 65 20 64 75 | 70 6c 69 63 61 74 65 20 |e are du|plicate |
|00000f60| 65 6e 74 72 69 65 73 20 | 69 6e 20 74 68 65 20 20 |entries |in the |
|00000f70| 77 69 64 74 68 0a 74 61 | 62 6c 65 2c 20 75 6e 6c |width.ta|ble, unl|
|00000f80| 65 73 73 20 79 6f 75 20 | 75 73 65 20 74 68 65 20 |ess you |use the |
|00000f90| 27 2d 63 27 20 6f 70 74 | 69 6f 6e 20 74 6f 20 6d |'-c' opt|ion to m|
|00000fa0| 6b 66 6f 6e 74 20 28 73 | 65 65 20 74 68 65 20 6d |kfont (s|ee the m|
|00000fb0| 61 6e 20 70 61 67 65 20 | 20 66 6f 72 0a 61 20 6c |an page | for.a l|
|00000fc0| 69 74 74 6c 65 20 6d 6f | 72 65 20 69 6e 66 6f 29 |ittle mo|re info)|
|00000fd0| 2e 0a 0a 49 66 20 79 6f | 75 20 75 73 65 20 20 74 |...If yo|u use t|
|00000fe0| 68 65 73 65 20 74 6f 20 | 70 72 6f 64 75 63 65 20 |hese to |produce |
|00000ff0| 20 50 6f 73 74 73 63 72 | 69 70 74 20 66 6f 6e 74 | Postscr|ipt font|
|00001000| 20 66 69 6c 65 73 2c 20 | 20 62 65 20 61 77 61 72 | files, | be awar|
|00001010| 65 20 6f 66 20 20 74 68 | 65 0a 73 74 61 6e 64 61 |e of th|e.standa|
|00001020| 72 64 20 64 69 74 72 6f | 66 66 20 6c 69 6d 69 74 |rd ditro|ff limit|
|00001030| 20 6f 66 20 31 30 20 66 | 6f 6e 74 73 20 28 65 6e | of 10 f|onts (en|
|00001040| 66 6f 72 63 65 64 20 62 | 79 20 63 6f 72 65 20 64 |forced b|y core d|
|00001050| 75 6d 70 29 2e 20 20 49 | 20 62 65 6c 69 65 76 65 |ump). I| believe|
|00001060| 0a 70 61 74 63 68 65 73 | 20 74 6f 20 20 66 69 78 |.patches| to fix|
|00001070| 20 20 74 68 69 73 20 20 | 61 6e 64 20 20 6f 74 68 | this |and oth|
|00001080| 65 72 20 62 75 67 73 20 | 20 61 72 65 20 20 69 6e |er bugs | are in|
|00001090| 20 20 74 68 65 20 20 55 | 53 45 4e 45 54 20 20 61 | the U|SENET a|
|000010a0| 72 63 68 69 76 65 73 0a | 73 6f 6d 65 77 68 65 72 |rchives.|somewher|
|000010b0| 65 2e 20 20 20 46 6f 72 | 20 74 68 6f 73 65 20 20 |e. For| those |
|000010c0| 6f 66 20 79 6f 75 20 20 | 77 69 74 68 20 20 50 79 |of you |with Py|
|000010d0| 72 61 6d 69 64 73 2c 20 | 52 54 4f 43 20 20 63 61 |ramids, |RTOC ca|
|000010e0| 6e 20 73 65 6e 64 20 20 | 79 6f 75 20 20 61 0a 76 |n send |you a.v|
|000010f0| 65 72 73 69 6f 6e 20 77 | 68 69 63 68 20 77 69 6c |ersion w|hich wil|
|00001100| 6c 20 20 68 61 6e 64 6c | 65 20 75 70 20 74 6f 20 |l handl|e up to |
|00001110| 20 32 35 20 66 69 6c 65 | 73 3b 20 6f 74 68 65 72 | 25 file|s; other|
|00001120| 77 69 73 65 20 20 79 6f | 75 27 6c 6c 20 68 61 76 |wise yo|u'll hav|
|00001130| 65 20 20 74 6f 0a 70 69 | 63 6b 20 61 6e 64 20 20 |e to.pi|ck and |
|00001140| 63 68 6f 73 65 2e 20 20 | 20 20 4e 4f 54 45 3a 20 |chose. | NOTE: |
|00001150| 20 6d 6b 66 6f 6e 74 20 | 77 69 6c 6c 20 20 63 6f | mkfont |will co|
|00001160| 6d 70 69 6c 65 20 20 74 | 68 65 6d 20 20 66 69 6e |mpile t|hem fin|
|00001170| 65 20 20 28 61 73 20 20 | 77 69 6c 6c 0a 6d 61 6b |e (as |will.mak|
|00001180| 65 64 65 76 29 2c 20 62 | 75 74 20 64 69 74 72 6f |edev), b|ut ditro|
|00001190| 66 66 20 77 6f 6e 27 74 | 20 6c 69 6b 65 20 27 65 |ff won't| like 'e|
|000011a0| 6d 2e 0a 0a 0a 44 75 61 | 6e 65 20 48 2e 20 48 65 |m....Dua|ne H. He|
|000011b0| 73 73 65 72 0a 64 68 68 | 40 74 65 6c 74 6f 6e 65 |sser.dhh|@teltone|
|000011c0| 2e 63 6f 6d 0a 00 00 00 | 00 00 00 00 00 00 00 00 |.com....|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 6d 6b 66 6f 6e 74 2f 4d | 61 6b 65 66 69 6c 65 00 |mkfont/M|akefile.|
|00001210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001280| 20 20 20 31 31 30 32 20 | 20 34 34 30 34 30 34 36 | 1102 | 4404046|
|00001290| 31 31 32 20 20 20 37 30 | 32 34 00 20 00 00 00 00 |112 70|24. ....|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 23 66 6f 72 20 53 35 20 | 75 6e 63 6f 6d 6d 65 6e |#for S5 |uncommen|
|00001410| 74 20 6e 65 78 74 20 6c | 69 6e 65 0a 23 20 43 46 |t next l|ine.# CF|
|00001420| 4c 41 47 53 3d 2d 44 53 | 59 53 35 0a 0a 52 44 53 |LAGS=-DS|YS5..RDS|
|00001430| 52 43 3d 09 72 65 61 64 | 64 65 73 63 2e 63 20 72 |RC=.read|desc.c r|
|00001440| 64 66 6f 6e 74 2e 63 20 | 73 74 72 73 61 76 65 2e |dfont.c |strsave.|
|00001450| 63 0a 52 44 4f 42 4a 3d | 09 72 65 61 64 64 65 73 |c.RDOBJ=|.readdes|
|00001460| 63 2e 6f 20 72 64 66 6f | 6e 74 2e 6f 20 73 74 72 |c.o rdfo|nt.o str|
|00001470| 73 61 76 65 2e 6f 0a 4d | 4b 53 52 43 3d 09 6d 61 |save.o.M|KSRC=.ma|
|00001480| 6b 65 64 65 73 63 2e 63 | 20 6d 6b 66 6f 6e 74 2e |kedesc.c| mkfont.|
|00001490| 63 20 6e 65 78 74 77 6f | 72 64 2e 63 20 73 74 72 |c nextwo|rd.c str|
|000014a0| 73 61 76 65 2e 63 0a 4d | 4b 4f 42 4a 3d 09 6d 61 |save.c.M|KOBJ=.ma|
|000014b0| 6b 65 64 65 73 63 2e 6f | 20 6d 6b 66 6f 6e 74 2e |kedesc.o| mkfont.|
|000014c0| 6f 20 6e 65 78 74 77 6f | 72 64 2e 6f 20 73 74 72 |o nextwo|rd.o str|
|000014d0| 73 61 76 65 2e 6f 0a 0a | 0a 61 6c 6c 3a 20 6d 6b |save.o..|.all: mk|
|000014e0| 66 6f 6e 74 20 72 64 66 | 6f 6e 74 0a 0a 6d 6b 66 |font rdf|ont..mkf|
|000014f0| 6f 6e 74 3a 09 24 7b 4d | 4b 4f 42 4a 7d 0a 09 63 |ont:.${M|KOBJ}..c|
|00001500| 63 20 2d 6f 20 6d 6b 66 | 6f 6e 74 20 2d 4f 20 24 |c -o mkf|ont -O $|
|00001510| 7b 4d 4b 4f 42 4a 7d 0a | 0a 72 64 66 6f 6e 74 3a |{MKOBJ}.|.rdfont:|
|00001520| 09 24 7b 52 44 4f 42 4a | 7d 0a 09 63 63 20 2d 6f |.${RDOBJ|}..cc -o|
|00001530| 20 72 64 66 6f 6e 74 20 | 2d 4f 20 24 7b 52 44 4f | rdfont |-O ${RDO|
|00001540| 42 4a 7d 0a 0a 72 64 66 | 6f 6e 74 2e 6f 3a 09 72 |BJ}..rdf|ont.o:.r|
|00001550| 64 66 6f 6e 74 2e 63 20 | 66 6f 6e 74 2e 68 0a 72 |dfont.c |font.h.r|
|00001560| 65 61 64 64 65 73 63 2e | 6f 3a 09 72 65 61 64 64 |eaddesc.|o:.readd|
|00001570| 65 73 63 2e 63 20 20 64 | 65 76 2e 68 0a 0a 6d 6b |esc.c d|ev.h..mk|
|00001580| 66 6f 6e 74 2e 6f 3a 09 | 6d 6b 66 6f 6e 74 2e 63 |font.o:.|mkfont.c|
|00001590| 20 66 6f 6e 74 2e 68 0a | 6d 61 6b 65 64 65 73 63 | font.h.|makedesc|
|000015a0| 2e 6f 3a 09 6d 61 6b 65 | 64 65 73 63 2e 63 20 20 |.o:.make|desc.c |
|000015b0| 64 65 76 2e 68 0a 0a 63 | 6c 65 61 6e 3a 0a 09 72 |dev.h..c|lean:..r|
|000015c0| 6d 20 2d 66 20 2a 2e 6f | 20 6d 6b 66 6f 6e 74 20 |m -f *.o| mkfont |
|000015d0| 72 64 66 6f 6e 74 0a 0a | 6c 69 6e 74 3a 0a 09 6c |rdfont..|lint:..l|
|000015e0| 69 6e 74 20 2d 70 68 62 | 76 61 63 20 64 65 76 2e |int -phb|vac dev.|
|000015f0| 68 20 66 6f 6e 74 2e 68 | 20 24 7b 4d 4b 53 52 43 |h font.h| ${MKSRC|
|00001600| 7d 20 3e 20 6c 69 6e 74 | 2e 6d 6b 66 6f 6e 74 0a |} > lint|.mkfont.|
|00001610| 09 6c 69 6e 74 20 2d 70 | 68 62 76 61 63 20 64 65 |.lint -p|hbvac de|
|00001620| 76 2e 68 20 66 6f 6e 74 | 2e 68 20 24 7b 52 44 53 |v.h font|.h ${RDS|
|00001630| 52 43 7d 20 3e 20 6c 69 | 6e 74 2e 72 64 66 6f 6e |RC} > li|nt.rdfon|
|00001640| 74 0a 61 6b 65 66 69 6c | 65 20 66 6f 72 20 53 59 |t.akefil|e for SY|
|00001650| 53 35 2e 20 20 54 68 65 | 72 65 20 69 73 20 61 6c |S5. The|re is al|
|00001660| 73 6f 20 61 20 63 61 6b | 65 66 69 6c 65 2c 20 66 |so a cak|efile, f|
|00001670| 6f 72 20 74 68 6f 73 65 | 20 73 6f 20 69 6e 63 6c |or those| so incl|
|00001680| 69 6e 65 64 2e 0a 46 6f | 72 20 73 6f 6d 65 20 73 |ined..Fo|r some s|
|00001690| 79 73 74 65 6d 73 2c 20 | 79 6f 75 20 6d 61 79 20 |ystems, |you may |
|000016a0| 68 61 76 65 20 74 6f 20 | 64 65 61 6c 20 77 69 74 |have to |deal wit|
|000016b0| 68 20 74 68 65 20 33 2d | 61 72 67 75 6d 65 6e 74 |h the 3-|argument|
|000016c0| 20 6f 70 65 6e 28 29 20 | 63 61 6c 6c 73 2e 0a 0a | open() |calls...|
|000016d0| 54 68 65 20 70 72 6f 67 | 72 61 6d 73 20 77 65 72 |The prog|rams wer|
|000016e0| 65 20 77 72 69 74 74 65 | 6e 20 20 61 66 74 65 72 |e writte|n after|
|000016f0| 20 50 79 72 61 6d 69 64 | 20 73 75 70 70 6c 69 65 | Pyramid| supplie|
|00001700| 64 20 20 64 69 74 72 6f | 66 66 20 77 69 74 68 20 |d ditro|ff with |
|00001710| 61 6e 20 20 4f 53 0a 75 | 70 67 72 61 64 65 2c 20 |an OS.u|pgrade, |
|00001720| 20 62 75 74 20 20 64 69 | 64 6e 27 74 20 20 73 75 | but di|dn't su|
|00001730| 70 70 6c 79 20 20 6d 61 | 6b 65 64 65 76 2e 20 20 |pply ma|kedev. |
|00001740| 20 20 22 6d 61 6b 65 64 | 65 76 22 20 20 68 61 73 | "maked|ev" has|
|00001750| 20 20 73 69 6e 63 65 20 | 20 62 65 65 6e 0a 73 75 | since | been.su|
|00001760| 70 70 6c 69 65 64 2c 20 | 61 6e 64 20 6d 6b 66 6f |pplied, |and mkfo|
|00001770| 6e 74 20 63 68 65 63 6b | 65 64 20 61 67 61 69 6e |nt check|ed again|
|00001780| 73 74 20 69 74 2e 0a 0a | 4d 6b 66 6f 6e 74 20 68 |st it...|Mkfont h|
|00001790| 61 73 20 20 62 65 65 6e | 20 75 73 65 64 20 20 74 |as been| used t|
|000017a0| 6f 20 63 6f 6d 70 69 6c | 65 20 20 50 6f 73 74 73 |o compil|e Posts|
|000017b0| 63 72 69 70 74 20 66 6f | 6e 74 73 20 20 66 72 6f |cript fo|nts fro|
|000017c0| 6d 20 20 64 65 73 63 72 | 69 70 74 69 6f 6e 0a 66 |m descr|iption.f|
|000017d0| 69 6c 65 73 20 70 6f 73 | 74 65 64 20 74 6f 20 55 |iles pos|ted to U|
|000017e0| 53 45 4e 45 54 20 69 6e | 20 4d 61 79 20 6f 66 20 |SENET in| May of |
|000017f0| 31 39 38 36 20 62 79 20 | 53 74 65 70 68 65 6e 20 |1986 by |Stephen |
|00001800| 6d 6b 66 6f 6e 74 2f 43 | 61 6b 65 66 69 6c 65 00 |mkfont/C|akefile.|
|00001810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001880| 20 20 20 20 20 33 37 20 | 20 34 34 30 34 30 34 36 | 37 | 4404046|
|00001890| 31 31 33 20 20 20 36 37 | 36 31 00 20 00 00 00 00 |113 67|61. ....|
|000018a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 23 69 6e 63 6c 75 64 65 | 20 22 43 22 0a 23 69 6e |#include| "C".#in|
|00001a10| 63 6c 75 64 65 20 22 53 | 79 73 74 65 6d 22 0a 00 |clude "S|ystem"..|
|00001a20| 53 68 61 72 46 69 6c 65 | 2e 48 65 61 64 65 72 73 |SharFile|.Headers|
|00001a30| 00 00 00 00 1b 90 01 00 | 10 00 06 00 52 45 41 44 |........|....READ|
|00001a40| 4d 45 00 00 1c 90 01 00 | 14 00 08 00 4d 61 6b 65 |ME......|....Make|
|00001a50| 66 69 6c 65 00 00 00 00 | 1d 90 01 00 14 00 08 00 |file....|........|
|00001a60| 43 61 6b 65 66 69 6c 65 | 00 00 00 00 1e 90 01 00 |Cakefile|........|
|00001a70| 10 00 04 00 43 6f 6e 66 | 00 00 00 00 1f 90 01 00 |....Conf|........|
|00001a80| 14 00 08 00 6d 6b 66 6f | 6e 74 2e 70 00 00 00 00 |....mkfo|nt.p....|
|00001a90| 20 90 01 00 10 00 05 00 | 64 65 76 2e 68 00 00 00 | .......|dev.h...|
|00001aa0| 21 90 01 00 10 00 06 00 | 66 6f 6e 74 2e 68 00 00 |!.......|font.h..|
|00001ab0| 22 90 01 00 14 00 0a 00 | 6d 61 6b 65 64 65 73 63 |".......|makedesc|
|00001ac0| 2e 63 00 00 23 90 01 00 | 14 00 08 00 6d 6b 66 6f |.c..#...|....mkfo|
|00001ad0| 6e 74 2e 63 00 00 00 00 | 24 90 01 00 14 00 08 00 |nt.c....|$.......|
|00001ae0| 72 64 66 6f 6e 74 2e 63 | 00 00 00 00 25 90 01 00 |rdfont.c|....%...|
|00001af0| 14 00 0a 00 72 65 61 64 | 64 65 73 63 2e 63 00 00 |....read|desc.c..|
|00001b00| 26 90 01 00 14 00 0a 00 | 6e 65 78 74 77 6f 72 64 |&.......|nextword|
|00001b10| 2e 63 00 00 27 90 01 00 | ec 00 09 00 73 74 72 73 |.c..'...|....strs|
|00001b20| 61 76 65 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |ave.c...|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 6d 6b 66 6f 6e 74 2f 43 | 6f 6e 66 00 00 00 00 00 |mkfont/C|onf.....|
|00001c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001c70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001c80| 20 20 20 20 31 32 30 20 | 20 34 34 30 34 30 34 36 | 120 | 4404046|
|00001c90| 31 31 34 20 20 20 36 31 | 35 35 00 20 00 00 00 00 |114 61|55. ....|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 6d 6b 66 6f 6e 74 20 6d | 61 6b 65 64 65 73 63 20 |mkfont m|akedesc |
|00001e10| 6d 6b 66 6f 6e 74 20 73 | 74 72 73 61 76 65 20 6e |mkfont s|trsave n|
|00001e20| 65 78 74 77 6f 72 64 0a | 72 64 66 6f 6e 74 20 72 |extword.|rdfont r|
|00001e30| 65 61 64 64 65 73 63 20 | 72 64 66 6f 6e 74 20 73 |eaddesc |rdfont s|
|00001e40| 74 72 73 61 76 65 20 6e | 65 78 74 77 6f 72 64 0a |trsave n|extword.|
|00001e50| 66 69 6c 65 00 00 00 00 | 1d 90 01 00 14 00 08 00 |file....|........|
|00001e60| 43 61 6b 65 66 69 6c 65 | 00 00 00 00 1e 90 01 00 |Cakefile|........|
|00001e70| 10 00 04 00 43 6f 6e 66 | 00 00 00 00 1f 90 01 00 |....Conf|........|
|00001e80| 14 00 08 00 6d 6b 66 6f | 6e 74 2e 70 00 00 00 00 |....mkfo|nt.p....|
|00001e90| 20 90 01 00 10 00 05 00 | 64 65 76 2e 68 00 00 00 | .......|dev.h...|
|00001ea0| 21 90 01 00 10 00 06 00 | 66 6f 6e 74 2e 68 00 00 |!.......|font.h..|
|00001eb0| 22 90 01 00 14 00 0a 00 | 6d 61 6b 65 64 65 73 63 |".......|makedesc|
|00001ec0| 2e 63 00 00 23 90 01 00 | 14 00 08 00 6d 6b 66 6f |.c..#...|....mkfo|
|00001ed0| 6e 74 2e 63 00 00 00 00 | 24 90 01 00 14 00 08 00 |nt.c....|$.......|
|00001ee0| 72 64 66 6f 6e 74 2e 63 | 00 00 00 00 25 90 01 00 |rdfont.c|....%...|
|00001ef0| 14 00 0a 00 72 65 61 64 | 64 65 73 63 2e 63 00 00 |....read|desc.c..|
|00001f00| 26 90 01 00 14 00 0a 00 | 6e 65 78 74 77 6f 72 64 |&.......|nextword|
|00001f10| 2e 63 00 00 27 90 01 00 | ec 00 09 00 73 74 72 73 |.c..'...|....strs|
|00001f20| 61 76 65 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |ave.c...|........|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002000| 6d 6b 66 6f 6e 74 2f 6d | 6b 66 6f 6e 74 2e 70 00 |mkfont/m|kfont.p.|
|00002010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00002080| 20 20 20 34 31 30 33 20 | 20 34 34 30 34 30 34 36 | 4103 | 4404046|
|00002090| 31 31 35 20 20 20 37 30 | 35 32 00 20 00 00 00 00 |115 70|52. ....|
|000020a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002200| 2e 54 48 20 4d 4b 46 4f | 4e 54 20 20 31 2d 50 0a |.TH MKFO|NT 1-P.|
|00002210| 2e 53 48 20 4e 41 4d 45 | 0a 6d 6b 66 6f 6e 74 2c |.SH NAME|.mkfont,|
|00002220| 72 64 66 6f 6e 74 20 5c | 2d 20 63 72 65 61 74 65 |rdfont \|- create|
|00002230| 2f 72 65 61 64 20 64 69 | 74 72 6f 66 66 20 66 6f |/read di|troff fo|
|00002240| 6e 74 20 66 69 6c 65 73 | 0a 2e 53 48 20 53 59 4e |nt files|..SH SYN|
|00002250| 4f 50 53 49 53 0a 2e 62 | 72 0a 2e 42 20 6d 6b 66 |OPSIS..b|r..B mkf|
|00002260| 6f 6e 74 0a 2e 49 20 5c | 2d 63 0a 5b 44 45 53 43 |ont..I \|-c.[DESC|
|00002270| 5d 0a 2e 62 72 0a 2e 42 | 20 72 64 66 6f 6e 74 0a |]..br..B| rdfont.|
|00002280| 5b 44 45 53 43 2e 6f 75 | 74 5d 0a 2e 53 48 20 44 |[DESC.ou|t]..SH D|
|00002290| 45 53 43 52 49 50 54 49 | 4f 4e 0a 2e 50 50 0a 2e |ESCRIPTI|ON..PP..|
|000022a0| 49 20 4d 6b 66 6f 6e 74 | 0a 72 65 61 64 73 20 61 |I Mkfont|.reads a|
|000022b0| 73 63 69 69 20 66 6f 72 | 6d 61 74 20 66 6f 6e 74 |scii for|mat font|
|000022c0| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 20 66 69 6c | descrip|tion fil|
|000022d0| 65 73 20 61 6e 64 20 63 | 72 65 61 74 65 73 20 62 |es and c|reates b|
|000022e0| 69 6e 61 72 79 20 66 6f | 72 6d 61 74 0a 66 69 6c |inary fo|rmat.fil|
|000022f0| 65 73 20 75 73 61 62 6c | 65 20 62 79 0a 2e 49 20 |es usabl|e by..I |
|00002300| 64 69 74 72 6f 66 66 2e | 0a 54 68 65 20 66 6f 72 |ditroff.|.The for|
|00002310| 6d 61 74 20 6f 66 20 74 | 68 65 20 61 73 63 69 69 |mat of t|he ascii|
|00002320| 20 66 69 6c 65 73 20 6d | 61 79 20 62 65 20 67 75 | files m|ay be gu|
|00002330| 65 73 73 65 64 20 72 65 | 61 73 6f 6e 61 62 6c 79 |essed re|asonably|
|00002340| 20 63 6c 6f 73 65 6c 79 | 20 62 79 0a 72 65 61 64 | closely| by.read|
|00002350| 69 6e 67 20 5c 66 43 66 | 6f 6e 74 5c 66 50 28 35 |ing \fCf|ont\fP(5|
|00002360| 29 20 61 6e 64 20 5c 66 | 43 74 72 6f 66 66 5c 66 |) and \f|Ctroff\f|
|00002370| 50 28 35 29 2e 0a 41 6c | 74 65 72 6e 61 74 69 76 |P(5)..Al|ternativ|
|00002380| 65 6c 79 2c 20 69 66 20 | 79 6f 75 20 68 61 76 65 |ely, if |you have|
|00002390| 20 65 78 69 73 74 69 6e | 67 20 66 6f 6e 74 73 2c | existin|g fonts,|
|000023a0| 20 79 6f 75 20 6d 61 79 | 20 72 75 6e 0a 2e 49 20 | you may| run..I |
|000023b0| 72 64 66 6f 6e 74 0a 6f | 6e 20 74 68 65 6d 20 74 |rdfont.o|n them t|
|000023c0| 6f 20 70 72 6f 64 75 63 | 65 20 74 68 65 69 72 20 |o produc|e their |
|000023d0| 61 73 63 69 69 20 65 71 | 75 69 76 61 6c 65 6e 74 |ascii eq|uivalent|
|000023e0| 73 20 28 77 68 69 63 68 | 20 79 6f 75 20 6d 61 79 |s (which| you may|
|000023f0| 20 74 68 65 6e 0a 6d 6f | 64 69 66 79 2c 20 69 66 | then.mo|dify, if|
|00002400| 20 79 6f 75 20 6c 69 6b | 65 2c 20 61 6e 64 20 72 | you lik|e, and r|
|00002410| 65 2d 63 6f 6d 70 69 6c | 65 20 77 69 74 68 20 5c |e-compil|e with \|
|00002420| 66 49 6d 6b 66 6f 6e 74 | 5c 66 50 29 2e 0a 54 68 |fImkfont|\fP)..Th|
|00002430| 65 20 70 72 6f 64 75 63 | 65 64 20 62 69 6e 61 72 |e produc|ed binar|
|00002440| 79 20 66 69 6c 65 73 20 | 61 72 65 20 6e 61 6d 65 |y files |are name|
|00002450| 64 20 62 79 20 74 68 65 | 20 69 6e 70 75 74 20 66 |d by the| input f|
|00002460| 69 6c 65 73 20 73 75 66 | 66 69 78 65 64 20 77 69 |iles suf|fixed wi|
|00002470| 74 68 0a 2e 49 20 2e 6f | 75 74 2e 0a 2e 49 20 44 |th..I .o|ut...I D|
|00002480| 69 74 72 6f 66 66 0a 65 | 78 70 65 63 74 73 20 74 |itroff.e|xpects t|
|00002490| 68 65 20 66 6f 6e 74 20 | 64 65 73 63 72 69 70 74 |he font |descript|
|000024a0| 69 6f 6e 20 66 69 6c 65 | 20 74 6f 20 62 65 20 6e |ion file| to be n|
|000024b0| 61 6d 65 64 0a 2e 49 20 | 44 45 53 43 2e 6f 75 74 |amed..I |DESC.out|
|000024c0| 2c 0a 73 6f 20 5c 66 49 | 6d 6b 66 6f 6e 74 5c 66 |,.so \fI|mkfont\f|
|000024d0| 50 20 65 78 70 65 63 74 | 73 20 61 6e 20 61 73 63 |P expect|s an asc|
|000024e0| 69 69 20 66 69 6c 65 20 | 6e 61 6d 65 64 20 5c 66 |ii file |named \f|
|000024f0| 49 44 45 53 43 5c 66 50 | 20 69 6e 20 74 68 65 0a |IDESC\fP| in the.|
|00002500| 63 75 72 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 |current |director|
|00002510| 79 20 69 66 20 6e 6f 20 | 61 72 67 75 6d 65 6e 74 |y if no |argument|
|00002520| 73 20 61 72 65 20 67 69 | 76 65 6e 3b 20 6f 74 68 |s are gi|ven; oth|
|00002530| 65 72 77 69 73 65 2c 20 | 74 68 65 20 6e 61 6d 65 |erwise, |the name|
|00002540| 0a 6f 66 20 74 68 65 20 | 64 65 73 63 72 69 70 74 |.of the |descript|
|00002550| 69 6f 6e 20 66 69 6c 65 | 20 6d 75 73 74 20 62 65 |ion file| must be|
|00002560| 20 67 69 76 65 6e 20 61 | 73 20 61 72 67 75 6d 65 | given a|s argume|
|00002570| 6e 74 2e 0a 54 68 65 20 | 5c 66 49 2d 63 5c 66 50 |nt..The |\fI-c\fP|
|00002580| 20 66 6c 61 67 20 63 61 | 75 73 65 73 20 74 68 65 | flag ca|uses the|
|00002590| 20 62 69 6e 61 72 79 20 | 66 69 6c 65 73 20 70 72 | binary |files pr|
|000025a0| 6f 64 75 63 65 64 20 74 | 6f 20 62 65 20 6d 6f 72 |oduced t|o be mor|
|000025b0| 65 0a 6e 65 61 72 6c 79 | 20 63 6f 6d 70 61 74 69 |e.nearly| compati|
|000025c0| 62 6c 65 20 77 69 74 68 | 20 74 68 6f 73 65 20 70 |ble with| those p|
|000025d0| 72 6f 64 75 63 65 64 20 | 62 79 20 74 68 65 20 41 |roduced |by the A|
|000025e0| 54 54 20 5c 66 49 6d 61 | 6b 65 64 65 76 5c 66 50 |TT \fIma|kedev\fP|
|000025f0| 0a 70 72 6f 67 72 61 6d | 20 28 5c 66 49 6d 61 6b |.program| (\fImak|
|00002600| 65 64 65 76 5c 66 50 20 | 64 6f 65 73 20 6e 6f 74 |edev\fP |does not|
|00002610| 20 6d 61 6b 65 20 64 75 | 70 6c 69 63 61 74 65 20 | make du|plicate |
|00002620| 77 69 64 74 68 20 74 61 | 62 6c 65 20 65 6e 74 72 |width ta|ble entr|
|00002630| 69 65 73 0a 69 6e 20 74 | 68 65 20 62 69 6e 61 72 |ies.in t|he binar|
|00002640| 79 20 66 69 6c 65 20 66 | 6f 72 20 63 68 61 72 61 |y file f|or chara|
|00002650| 63 74 65 72 73 20 77 68 | 6f 73 65 20 77 69 64 74 |cters wh|ose widt|
|00002660| 68 20 69 73 20 67 69 76 | 65 6e 20 62 79 20 64 6f |h is giv|en by do|
|00002670| 75 62 6c 65 0a 71 75 6f | 74 65 73 20 69 6e 20 74 |uble.quo|tes in t|
|00002680| 68 65 20 61 73 63 69 69 | 20 66 69 6c 65 3b 20 5c |he ascii| file; \|
|00002690| 66 49 6d 6b 66 6f 6e 74 | 5c 66 50 20 64 6f 65 73 |fImkfont|\fP does|
|000026a0| 2c 20 75 6e 6c 65 73 73 | 20 5c 66 49 2d 63 5c 66 |, unless| \fI-c\f|
|000026b0| 50 20 69 73 0a 67 69 76 | 65 6e 29 2e 0a 2e 50 50 |P is.giv|en)...PP|
|000026c0| 0a 2e 49 20 52 64 66 6f | 6e 74 0a 65 78 61 6d 69 |..I Rdfo|nt.exami|
|000026d0| 6e 65 73 20 61 20 62 69 | 6e 61 72 79 20 66 6f 72 |nes a bi|nary for|
|000026e0| 6d 61 74 20 66 6f 6e 74 | 20 73 65 74 20 61 6e 64 |mat font| set and|
|000026f0| 20 70 72 6f 64 75 63 65 | 73 20 61 20 73 65 74 20 | produce|s a set |
|00002700| 6f 66 20 61 73 63 69 69 | 20 66 69 6c 65 73 0a 77 |of ascii| files.w|
|00002710| 68 69 63 68 20 64 65 73 | 63 72 69 62 65 20 74 68 |hich des|cribe th|
|00002720| 65 6d 2e 20 20 54 68 65 | 20 61 73 63 69 69 20 66 |em. The| ascii f|
|00002730| 69 6c 65 73 20 61 72 65 | 20 69 6e 20 61 20 66 6f |iles are| in a fo|
|00002740| 72 6d 20 73 75 69 74 61 | 62 6c 65 20 66 6f 72 0a |rm suita|ble for.|
|00002750| 72 65 2d 63 6f 6d 70 69 | 6c 69 6e 67 20 77 69 74 |re-compi|ling wit|
|00002760| 68 20 5c 66 49 6d 6b 66 | 6f 6e 74 5c 66 50 2e 0a |h \fImkf|ont\fP..|
|00002770| 49 66 20 6e 6f 20 61 72 | 67 75 6d 65 6e 74 73 20 |If no ar|guments |
|00002780| 61 72 65 20 67 69 76 65 | 6e 2c 20 61 20 64 65 73 |are give|n, a des|
|00002790| 63 72 69 70 74 69 6f 6e | 20 66 69 6c 65 20 6e 61 |cription| file na|
|000027a0| 6d 65 64 20 5c 66 49 44 | 45 53 43 2e 6f 75 74 5c |med \fID|ESC.out\|
|000027b0| 66 50 0a 69 73 20 65 78 | 70 65 63 74 65 64 2e 20 |fP.is ex|pected. |
|000027c0| 20 41 6e 20 61 6c 74 65 | 72 6e 61 74 65 20 64 65 | An alte|rnate de|
|000027d0| 73 63 72 69 70 74 69 6f | 6e 20 66 69 6c 65 20 6e |scriptio|n file n|
|000027e0| 61 6d 65 20 6d 61 79 20 | 62 65 20 67 69 76 65 6e |ame may |be given|
|000027f0| 20 61 73 0a 61 72 67 75 | 6d 65 6e 74 2e 0a 54 68 | as.argu|ment..Th|
|00002800| 65 20 70 72 6f 64 75 63 | 65 64 20 66 69 6c 65 73 |e produc|ed files|
|00002810| 20 61 72 65 20 6e 61 6d | 65 64 20 62 79 20 72 65 | are nam|ed by re|
|00002820| 70 6c 61 63 69 6e 67 20 | 74 68 65 20 5c 66 49 2e |placing |the \fI.|
|00002830| 6f 75 74 5c 66 50 20 65 | 78 74 65 6e 73 69 6f 6e |out\fP e|xtension|
|00002840| 73 0a 6f 66 20 74 68 65 | 20 69 6e 70 75 74 20 66 |s.of the| input f|
|00002850| 69 6c 65 73 20 62 79 20 | 5c 66 49 2e 6e 65 77 5c |iles by |\fI.new\|
|00002860| 66 50 2c 20 74 6f 20 61 | 76 6f 69 64 20 6f 76 65 |fP, to a|void ove|
|00002870| 72 77 72 69 74 69 6e 67 | 20 65 78 69 73 74 69 6e |rwriting| existin|
|00002880| 67 0a 64 65 73 63 72 69 | 70 74 69 6f 6e 20 66 69 |g.descri|ption fi|
|00002890| 6c 65 73 2e 20 20 49 66 | 20 74 68 65 73 65 20 66 |les. If| these f|
|000028a0| 69 6c 65 73 20 61 72 65 | 20 74 6f 20 62 65 20 72 |iles are| to be r|
|000028b0| 65 2d 63 6f 6d 70 69 6c | 65 64 2c 20 74 68 65 0a |e-compil|ed, the.|
|000028c0| 65 78 74 65 6e 73 69 6f | 6e 73 20 73 68 6f 75 6c |extensio|ns shoul|
|000028d0| 64 20 62 65 20 72 65 6d | 6f 76 65 64 2e 0a 2e 0a |d be rem|oved....|
|000028e0| 2e 53 48 20 44 49 41 47 | 4e 4f 53 54 49 43 53 0a |.SH DIAG|NOSTICS.|
|000028f0| 2e 50 50 0a 2e 53 48 20 | 42 55 47 53 0a 2e 50 50 |.PP..SH |BUGS..PP|
|00002900| 0a 2e 49 20 4d 6b 66 6f | 6e 74 0a 64 6f 65 73 20 |..I Mkfo|nt.does |
|00002910| 6e 6f 74 20 64 6f 20 6d | 75 63 68 20 63 68 65 63 |not do m|uch chec|
|00002920| 6b 69 6e 67 20 6f 6e 20 | 74 68 65 20 76 61 6c 69 |king on |the vali|
|00002930| 64 69 74 79 20 6f 66 20 | 74 68 65 20 66 6f 6e 74 |dity of |the font|
|00002940| 2c 20 61 6c 74 68 6f 75 | 67 68 20 69 74 0a 63 6f |, althou|gh it.co|
|00002950| 75 6c 64 20 64 6f 20 73 | 6f 2e 0a 2e 49 20 52 64 |uld do s|o...I Rd|
|00002960| 66 6f 6e 74 0a 77 72 69 | 74 65 73 20 61 20 66 65 |font.wri|tes a fe|
|00002970| 77 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 69 74 |w inform|ation it|
|00002980| 65 6d 73 20 74 6f 20 74 | 68 65 20 61 73 63 69 69 |ems to t|he ascii|
|00002990| 20 66 69 6c 65 20 61 73 | 20 63 6f 6d 6d 65 6e 74 | file as| comment|
|000029a0| 20 6c 69 6e 65 73 2e 0a | 54 68 61 74 27 73 20 6e | lines..|That's n|
|000029b0| 6f 74 20 61 20 62 75 67 | 2c 20 62 75 74 20 69 74 |ot a bug|, but it|
|000029c0| 20 64 6f 65 73 20 6d 61 | 6b 65 20 63 6f 6d 70 61 | does ma|ke compa|
|000029d0| 72 69 73 6f 6e 20 6f 66 | 20 6f 72 69 67 69 6e 61 |rison of| origina|
|000029e0| 6c 73 20 61 6e 64 0a 64 | 75 70 6c 69 63 61 74 65 |ls and.d|uplicate|
|000029f0| 73 20 61 20 62 69 74 20 | 28 6e 6f 74 20 6d 75 75 |s a bit |(not muu|
|00002a00| 63 68 29 20 68 61 72 64 | 65 72 2e 0a 2e 53 48 20 |ch) hard|er...SH |
|00002a10| 41 55 54 48 4f 52 0a 2e | 62 72 0a 44 75 61 6e 65 |AUTHOR..|br.Duane|
|00002a20| 20 48 2e 20 48 65 73 73 | 65 72 0a 2e 62 72 0a 54 | H. Hess|er..br.T|
|00002a30| 65 6c 74 6f 6e 65 20 43 | 6f 72 70 6f 72 61 74 69 |eltone C|orporati|
|00002a40| 6f 6e 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |on......|........|
|00002a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 6d 6b 66 6f 6e 74 2f 64 | 65 76 2e 68 00 00 00 00 |mkfont/d|ev.h....|
|00002c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002c70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00002c80| 20 20 20 20 36 33 32 20 | 20 34 34 30 34 30 34 36 | 632 | 4404046|
|00002c90| 31 31 37 20 20 20 36 33 | 30 37 00 20 00 00 00 00 |117 63|07. ....|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 2f 2a 0a 20 2a 20 24 48 | 65 61 64 65 72 3a 20 64 |/*. * $H|eader: d|
|00002e10| 65 76 2e 68 2c 76 20 31 | 2e 31 20 38 37 2f 31 30 |ev.h,v 1|.1 87/10|
|00002e20| 2f 32 33 20 31 39 3a 30 | 38 3a 30 37 20 73 79 73 |/23 19:0|8:07 sys|
|00002e30| 61 64 20 45 78 70 20 24 | 0a 20 2a 2f 0a 0a 2f 2a |ad Exp $|. */../*|
|00002e40| 0a 20 2a 20 24 4c 6f 67 | 3a 09 64 65 76 2e 68 2c |. * $Log|:.dev.h,|
|00002e50| 76 20 24 0a 20 2a 20 52 | 65 76 69 73 69 6f 6e 20 |v $. * R|evision |
|00002e60| 31 2e 31 20 20 38 37 2f | 31 30 2f 32 33 20 20 31 |1.1 87/|10/23 1|
|00002e70| 39 3a 30 38 3a 30 37 20 | 20 73 79 73 61 64 0a 20 |9:08:07 | sysad. |
|00002e80| 2a 20 49 6e 69 74 69 61 | 6c 20 72 65 76 69 73 69 |* Initia|l revisi|
|00002e90| 6f 6e 0a 20 2a 20 0a 20 | 2a 20 0a 20 2a 2f 0a 0a |on. * . |* . */..|
|00002ea0| 20 73 74 72 75 63 74 20 | 64 65 76 20 7b 0a 09 75 | struct |dev {..u|
|00002eb0| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 20 66 69 |nsigned |short fi|
|00002ec0| 6c 65 73 69 7a 65 3b 0a | 09 73 68 6f 72 74 20 72 |lesize;.|.short r|
|00002ed0| 65 73 3b 0a 09 73 68 6f | 72 74 20 68 6f 72 3b 0a |es;..sho|rt hor;.|
|00002ee0| 09 73 68 6f 72 74 20 76 | 65 72 74 3b 0a 09 73 68 |.short v|ert;..sh|
|00002ef0| 6f 72 74 20 75 6e 69 74 | 77 69 64 74 68 3b 0a 09 |ort unit|width;..|
|00002f00| 73 68 6f 72 74 20 6e 66 | 6f 6e 74 73 3b 0a 09 73 |short nf|onts;..s|
|00002f10| 68 6f 72 74 20 6e 73 69 | 7a 65 73 3b 0a 09 73 68 |hort nsi|zes;..sh|
|00002f20| 6f 72 74 20 73 69 7a 65 | 73 63 61 6c 65 3b 0a 09 |ort size|scale;..|
|00002f30| 73 68 6f 72 74 20 70 61 | 70 65 72 77 69 64 74 68 |short pa|perwidth|
|00002f40| 3b 0a 09 73 68 6f 72 74 | 20 70 61 70 65 72 6c 65 |;..short| paperle|
|00002f50| 6e 67 74 68 3b 0a 09 73 | 68 6f 72 74 20 6e 63 68 |ngth;..s|hort nch|
|00002f60| 74 61 62 3b 0a 09 73 68 | 6f 72 74 20 6c 63 68 6e |tab;..sh|ort lchn|
|00002f70| 61 6d 65 3b 0a 09 73 68 | 6f 72 74 20 62 69 67 67 |ame;..sh|ort bigg|
|00002f80| 65 73 74 66 6f 6e 74 3b | 0a 09 73 68 6f 72 74 20 |estfont;|..short |
|00002f90| 73 70 61 72 65 3b 0a 7d | 3b 0a 00 00 00 00 00 00 |spare;.}|;.......|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 6d 6b 66 6f 6e 74 2f 66 | 6f 6e 74 2e 68 00 00 00 |mkfont/f|ont.h...|
|00003010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00003080| 20 20 20 20 35 36 31 20 | 20 34 34 30 34 30 34 36 | 561 | 4404046|
|00003090| 31 32 30 20 20 20 36 34 | 37 32 00 20 00 00 00 00 |120 64|72. ....|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003200| 2f 2a 0a 20 2a 20 24 48 | 65 61 64 65 72 3a 20 66 |/*. * $H|eader: f|
|00003210| 6f 6e 74 2e 68 2c 76 20 | 31 2e 31 20 38 37 2f 31 |ont.h,v |1.1 87/1|
|00003220| 30 2f 32 33 20 31 39 3a | 30 38 3a 30 38 20 73 79 |0/23 19:|08:08 sy|
|00003230| 73 61 64 20 45 78 70 20 | 24 0a 20 2a 2f 0a 0a 2f |sad Exp |$. */../|
|00003240| 2a 0a 20 2a 20 24 4c 6f | 67 3a 09 66 6f 6e 74 2e |*. * $Lo|g:.font.|
|00003250| 68 2c 76 20 24 0a 20 2a | 20 52 65 76 69 73 69 6f |h,v $. *| Revisio|
|00003260| 6e 20 31 2e 31 20 20 38 | 37 2f 31 30 2f 32 33 20 |n 1.1 8|7/10/23 |
|00003270| 20 31 39 3a 30 38 3a 30 | 38 20 20 73 79 73 61 64 | 19:08:0|8 sysad|
|00003280| 0a 20 2a 20 49 6e 69 74 | 69 61 6c 20 72 65 76 69 |. * Init|ial revi|
|00003290| 73 69 6f 6e 0a 20 2a 20 | 0a 20 2a 20 0a 20 2a 2f |sion. * |. * . */|
|000032a0| 0a 0a 73 74 72 75 63 74 | 20 46 6f 6e 74 20 7b 0a |..struct| Font {.|
|000032b0| 09 63 68 61 72 20 6e 77 | 66 6f 6e 74 3b 0a 09 63 |.char nw|font;..c|
|000032c0| 68 61 72 20 73 70 65 63 | 66 6f 6e 74 3b 0a 09 63 |har spec|font;..c|
|000032d0| 68 61 72 20 6c 69 67 66 | 6f 6e 74 3b 0a 09 63 68 |har ligf|ont;..ch|
|000032e0| 61 72 20 70 61 64 3b 0a | 09 63 68 61 72 20 6e 61 |ar pad;.|.char na|
|000032f0| 6d 65 66 6f 6e 74 5b 31 | 30 5d 3b 0a 09 63 68 61 |mefont[1|0];..cha|
|00003300| 72 20 69 6e 74 6e 61 6d | 65 5b 31 30 5d 3b 0a 7d |r intnam|e[10];.}|
|00003310| 3b 0a 0a 23 64 65 66 69 | 6e 65 09 4c 49 47 5f 46 |;..#defi|ne.LIG_F|
|00003320| 46 09 30 31 0a 23 64 65 | 66 69 6e 65 09 4c 49 47 |F.01.#de|fine.LIG|
|00003330| 5f 46 49 09 30 32 0a 23 | 64 65 66 69 6e 65 09 4c |_FI.02.#|define.L|
|00003340| 49 47 5f 46 4c 09 30 34 | 0a 23 64 65 66 69 6e 65 |IG_FL.04|.#define|
|00003350| 09 4c 49 47 5f 46 46 49 | 09 30 31 30 0a 23 64 65 |.LIG_FFI|.010.#de|
|00003360| 66 69 6e 65 09 4c 49 47 | 5f 46 46 4c 09 30 32 30 |fine.LIG|_FFL.020|
|00003370| 0a 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003400| 6d 6b 66 6f 6e 74 2f 6d | 61 6b 65 64 65 73 63 2e |mkfont/m|akedesc.|
|00003410| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00003420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003470| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00003480| 20 20 32 30 33 37 31 20 | 20 34 34 30 34 30 34 36 | 20371 | 4404046|
|00003490| 31 32 33 20 20 20 37 33 | 33 37 00 20 00 00 00 00 |123 73|37. ....|
|000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003600| 73 74 61 74 69 63 20 63 | 68 61 72 20 2a 52 43 53 |static c|har *RCS|
|00003610| 69 64 20 3d 20 22 24 48 | 65 61 64 65 72 3a 20 6d |id = "$H|eader: m|
|00003620| 61 6b 65 64 65 73 63 2e | 63 2c 76 20 31 2e 31 20 |akedesc.|c,v 1.1 |
|00003630| 38 37 2f 31 30 2f 32 33 | 20 31 39 3a 30 38 3a 30 |87/10/23| 19:08:0|
|00003640| 39 20 73 79 73 61 64 20 | 45 78 70 20 24 22 3b 0a |9 sysad |Exp $";.|
|00003650| 0a 2f 2a 20 52 65 61 64 | 20 61 6e 20 61 73 63 69 |./* Read| an asci|
|00003660| 69 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 6f 66 |i descri|ption of|
|00003670| 20 61 20 64 69 74 72 6f | 66 66 20 66 6f 6e 74 20 | a ditro|ff font |
|00003680| 61 6e 64 20 63 72 65 61 | 74 65 20 74 68 65 20 20 |and crea|te the |
|00003690| 20 20 20 20 20 20 20 2a | 2f 0a 2f 2a 20 63 6f 72 | *|/./* cor|
|000036a0| 72 65 73 70 6f 6e 64 69 | 6e 67 20 62 69 6e 61 72 |respondi|ng binar|
|000036b0| 79 20 66 6f 6e 74 20 66 | 69 6c 65 73 20 20 20 20 |y font f|iles |
|000036c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000036d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000036e0| 2a 2f 0a 0a 0a 2f 2a 0a | 20 2a 20 24 4c 6f 67 3a |*/.../*.| * $Log:|
|000036f0| 09 6d 61 6b 65 64 65 73 | 63 2e 63 2c 76 20 24 0a |.makedes|c.c,v $.|
|00003700| 20 2a 20 52 65 76 69 73 | 69 6f 6e 20 31 2e 31 20 | * Revis|ion 1.1 |
|00003710| 20 38 37 2f 31 30 2f 32 | 33 20 20 31 39 3a 30 38 | 87/10/2|3 19:08|
|00003720| 3a 30 39 20 20 73 79 73 | 61 64 0a 20 2a 20 49 6e |:09 sys|ad. * In|
|00003730| 69 74 69 61 6c 20 72 65 | 76 69 73 69 6f 6e 0a 20 |itial re|vision. |
|00003740| 2a 20 0a 20 2a 20 0a 20 | 2a 2f 0a 0a 23 69 6e 63 |* . * . |*/..#inc|
|00003750| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0a 23 |lude <st|dio.h>.#|
|00003760| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 66 69 6c |include |<sys/fil|
|00003770| 65 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 22 64 |e.h>.#in|clude "d|
|00003780| 65 76 2e 68 22 0a 0a 23 | 64 65 66 69 6e 65 09 53 |ev.h"..#|define.S|
|00003790| 48 4f 52 54 09 30 78 66 | 66 66 66 0a 23 64 65 66 |HORT.0xf|fff.#def|
|000037a0| 69 6e 65 09 4d 41 58 50 | 09 31 32 38 09 09 2f 2a |ine.MAXP|.128../*|
|000037b0| 20 61 6c 6c 6f 63 61 74 | 65 20 73 70 61 63 65 20 | allocat|e space |
|000037c0| 66 6f 72 20 70 6f 69 6e | 74 20 73 69 7a 65 73 20 |for poin|t sizes |
|000037d0| 69 6e 20 4d 41 58 50 20 | 63 68 75 6e 6b 73 20 2a |in MAXP |chunks *|
|000037e0| 2f 0a 69 6e 74 20 63 6f | 6d 70 61 74 20 3d 20 30 |/.int co|mpat = 0|
|000037f0| 3b 09 09 2f 2a 20 63 6f | 6d 70 61 74 69 62 69 6c |;../* co|mpatibil|
|00003800| 69 74 79 20 77 69 74 68 | 20 61 74 74 20 22 6d 61 |ity with| att "ma|
|00003810| 6b 65 64 65 76 22 3b 20 | 64 75 70 6c 69 63 61 74 |kedev"; |duplicat|
|00003820| 65 20 22 77 69 64 74 68 | 22 0a 09 09 09 09 09 20 |e "width|"...... |
|00003830| 2a 20 65 6e 74 72 69 65 | 73 20 61 72 65 20 72 65 |* entrie|s are re|
|00003840| 2d 75 73 65 64 20 69 66 | 20 74 68 69 73 20 69 73 |-used if| this is|
|00003850| 20 6e 6f 6e 2d 7a 65 72 | 6f 2e 0a 09 09 09 09 09 | non-zer|o.......|
|00003860| 20 2a 2f 0a 63 68 61 72 | 20 2a 50 72 6f 67 6e 61 | */.char| *Progna|
|00003870| 6d 65 3b 0a 73 74 72 75 | 63 74 20 64 65 76 20 64 |me;.stru|ct dev d|
|00003880| 65 76 3b 0a 65 78 74 65 | 72 6e 20 63 68 61 72 20 |ev;.exte|rn char |
|00003890| 2a 6d 61 6c 6c 6f 63 28 | 29 2c 2a 6e 65 78 74 77 |*malloc(|),*nextw|
|000038a0| 6f 72 64 28 29 2c 2a 73 | 61 76 65 73 74 72 28 29 |ord(),*s|avestr()|
|000038b0| 3b 0a 65 78 74 65 72 6e | 20 63 68 61 72 20 2a 2a |;.extern| char **|
|000038c0| 66 6f 6e 74 5f 6e 61 6d | 65 73 28 29 2c 2a 66 67 |font_nam|es(),*fg|
|000038d0| 65 74 73 28 29 3b 0a 65 | 78 74 65 72 6e 20 46 49 |ets();.e|xtern FI|
|000038e0| 4c 45 20 2a 66 6f 70 65 | 6e 28 29 3b 0a 65 78 74 |LE *fope|n();.ext|
|000038f0| 65 72 6e 20 73 68 6f 72 | 74 20 2a 70 5f 73 69 7a |ern shor|t *p_siz|
|00003900| 65 73 28 29 3b 0a 0a 6d | 61 69 6e 28 61 72 67 63 |es();..m|ain(argc|
|00003910| 2c 61 72 67 76 29 0a 69 | 6e 74 20 61 72 67 63 3b |,argv).i|nt argc;|
|00003920| 0a 63 68 61 72 20 2a 2a | 61 72 67 76 3b 0a 7b 0a |.char **|argv;.{.|
|00003930| 09 46 49 4c 45 20 2a 69 | 6e 70 74 72 3b 0a 09 69 |.FILE *i|nptr;..i|
|00003940| 6e 74 20 66 64 6f 75 74 | 2c 6e 63 68 74 61 62 2c |nt fdout|,nchtab,|
|00003950| 6c 63 68 6e 61 6d 65 2c | 69 2c 66 73 69 7a 65 2c |lchname,|i,fsize,|
|00003960| 62 69 67 67 65 73 74 66 | 6f 6e 74 3b 0a 09 6c 6f |biggestf|ont;..lo|
|00003970| 6e 67 20 66 6f 6e 74 66 | 5f 73 74 61 72 74 3b 0a |ng fontf|_start;.|
|00003980| 09 73 68 6f 72 74 20 2a | 70 6f 69 6e 74 5f 6c 69 |.short *|point_li|
|00003990| 73 74 2c 2a 66 75 6e 6e | 79 5f 69 6e 64 3b 0a 09 |st,*funn|y_ind;..|
|000039a0| 63 68 61 72 20 2a 66 75 | 6e 6e 79 5f 63 68 61 72 |char *fu|nny_char|
|000039b0| 73 3b 0a 09 63 68 61 72 | 20 2a 2a 66 6f 6e 74 5f |s;..char| **font_|
|000039c0| 6c 69 73 74 3b 0a 09 63 | 68 61 72 20 6d 79 62 75 |list;..c|har mybu|
|000039d0| 66 5b 31 30 32 34 5d 3b | 0a 09 63 68 61 72 20 2a |f[1024];|..char *|
|000039e0| 73 74 72 2c 2a 64 65 73 | 63 66 69 6c 65 3b 0a 0a |str,*des|cfile;..|
|000039f0| 09 50 72 6f 67 6e 61 6d | 65 20 3d 20 61 72 67 76 |.Prognam|e = argv|
|00003a00| 5b 30 5d 3b 0a 09 2b 2b | 61 72 67 76 3b 20 2d 2d |[0];..++|argv; --|
|00003a10| 61 72 67 63 3b 0a 0a 09 | 69 66 28 73 74 72 63 6d |argc;...|if(strcm|
|00003a20| 70 28 2a 61 72 67 76 2c | 22 2d 63 22 29 20 3d 3d |p(*argv,|"-c") ==|
|00003a30| 20 30 29 0a 09 7b 0a 09 | 09 2b 2b 63 6f 6d 70 61 | 0)..{..|.++compa|
|00003a40| 74 3b 0a 09 09 2b 2b 61 | 72 67 76 3b 0a 09 09 2d |t;...++a|rgv;...-|
|00003a50| 2d 61 72 67 63 3b 0a 09 | 7d 0a 09 69 66 28 61 72 |-argc;..|}..if(ar|
|00003a60| 67 63 20 3d 3d 20 30 29 | 0a 09 7b 0a 09 09 64 65 |gc == 0)|..{...de|
|00003a70| 73 63 66 69 6c 65 20 3d | 20 22 44 45 53 43 22 3b |scfile =| "DESC";|
|00003a80| 0a 09 7d 0a 09 65 6c 73 | 65 20 69 66 28 61 72 67 |..}..els|e if(arg|
|00003a90| 63 20 3d 3d 20 31 29 0a | 09 7b 0a 09 09 64 65 73 |c == 1).|.{...des|
|00003aa0| 63 66 69 6c 65 20 3d 20 | 61 72 67 76 5b 30 5d 3b |cfile = |argv[0];|
|00003ab0| 0a 09 7d 0a 09 65 6c 73 | 65 0a 09 7b 0a 09 09 66 |..}..els|e..{...f|
|00003ac0| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 22 75 |printf(s|tderr,"u|
|00003ad0| 73 61 67 65 3a 20 25 73 | 20 5b 2d 63 5d 20 5b 64 |sage: %s| [-c] [d|
|00003ae0| 65 73 63 66 69 6c 65 5d | 5c 6e 22 2c 50 72 6f 67 |escfile]|\n",Prog|
|00003af0| 6e 61 6d 65 29 3b 0a 09 | 09 65 78 69 74 28 31 29 |name);..|.exit(1)|
|00003b00| 3b 0a 09 7d 0a 0a 09 69 | 66 28 28 69 6e 70 74 72 |;..}...i|f((inptr|
|00003b10| 20 3d 20 66 6f 70 65 6e | 28 64 65 73 63 66 69 6c | = fopen|(descfil|
|00003b20| 65 2c 22 72 22 29 29 20 | 3d 3d 20 28 46 49 4c 45 |e,"r")) |== (FILE|
|00003b30| 20 2a 29 30 29 0a 09 7b | 0a 09 09 66 70 72 69 6e | *)0)..{|...fprin|
|00003b40| 74 66 28 73 74 64 65 72 | 72 2c 22 25 73 3a 20 63 |tf(stder|r,"%s: c|
|00003b50| 61 6e 27 74 20 6f 70 65 | 6e 20 25 73 5c 6e 22 2c |an't ope|n %s\n",|
|00003b60| 50 72 6f 67 6e 61 6d 65 | 2c 64 65 73 63 66 69 6c |Progname|,descfil|
|00003b70| 65 29 3b 0a 09 09 65 78 | 69 74 28 32 29 3b 0a 09 |e);...ex|it(2);..|
|00003b80| 7d 0a 09 73 70 72 69 6e | 74 66 28 6d 79 62 75 66 |}..sprin|tf(mybuf|
|00003b90| 2c 22 25 73 2e 6f 75 74 | 22 2c 64 65 73 63 66 69 |,"%s.out|",descfi|
|00003ba0| 6c 65 29 3b 0a 09 69 66 | 28 28 66 64 6f 75 74 20 |le);..if|((fdout |
|00003bb0| 3d 20 6f 70 65 6e 28 6d | 79 62 75 66 2c 4f 5f 43 |= open(m|ybuf,O_C|
|00003bc0| 52 45 41 54 20 7c 20 4f | 5f 57 52 4f 4e 4c 59 2c |REAT | O|_WRONLY,|
|00003bd0| 30 36 34 34 29 29 20 3c | 20 30 29 0a 09 7b 0a 09 |0644)) <| 0)..{..|
|00003be0| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00003bf0| 22 25 73 3a 20 63 61 6e | 27 74 20 63 72 65 61 74 |"%s: can|'t creat|
|00003c00| 65 20 25 73 5c 6e 22 2c | 50 72 6f 67 6e 61 6d 65 |e %s\n",|Progname|
|00003c10| 2c 6d 79 62 75 66 29 3b | 0a 09 09 65 78 69 74 28 |,mybuf);|...exit(|
|00003c20| 32 29 3b 0a 09 7d 0a 09 | 64 65 76 2e 66 69 6c 65 |2);..}..|dev.file|
|00003c30| 73 69 7a 65 20 3d 20 28 | 73 68 6f 72 74 29 30 3b |size = (|short)0;|
|00003c40| 0a 09 64 65 76 2e 73 69 | 7a 65 73 63 61 6c 65 20 |..dev.si|zescale |
|00003c50| 3d 20 28 73 68 6f 72 74 | 29 31 3b 0a 09 62 69 67 |= (short|)1;..big|
|00003c60| 67 65 73 74 66 6f 6e 74 | 20 3d 20 30 3b 0a 09 64 |gestfont| = 0;..d|
|00003c70| 65 76 2e 73 70 61 72 65 | 20 3d 20 28 73 68 6f 72 |ev.spare| = (shor|
|00003c80| 74 29 30 3b 0a 09 2f 2a | 20 42 75 69 6c 64 20 74 |t)0;../*| Build t|
|00003c90| 68 65 20 64 65 76 20 73 | 74 72 75 63 74 75 72 65 |he dev s|tructure|
|00003ca0| 20 66 69 72 73 74 20 2a | 2f 0a 09 77 68 69 6c 65 | first *|/..while|
|00003cb0| 28 66 67 65 74 73 28 6d | 79 62 75 66 2c 31 30 32 |(fgets(m|ybuf,102|
|00003cc0| 34 2c 69 6e 70 74 72 29 | 29 0a 09 7b 0a 73 74 61 |4,inptr)|)..{.sta|
|00003cd0| 72 74 3a 09 2f 2a 20 77 | 65 20 63 6f 6d 65 20 62 |rt:./* w|e come b|
|00003ce0| 61 63 6b 20 68 65 72 65 | 20 69 66 20 77 65 20 72 |ack here| if we r|
|00003cf0| 65 61 64 20 61 68 65 61 | 64 20 69 6e 20 61 20 66 |ead ahea|d in a f|
|00003d00| 6f 6e 74 5f 6e 61 6d 65 | 73 28 29 20 2a 2f 0a 09 |ont_name|s() */..|
|00003d10| 09 69 66 28 21 2a 6d 79 | 62 75 66 20 7c 7c 20 28 |.if(!*my|buf || (|
|00003d20| 2a 6d 79 62 75 66 20 3d | 3d 20 27 23 27 29 29 0a |*mybuf =|= '#')).|
|00003d30| 09 09 09 63 6f 6e 74 69 | 6e 75 65 3b 0a 09 09 6e |...conti|nue;...n|
|00003d40| 65 78 74 77 6f 72 64 28 | 22 22 29 3b 09 2f 2a 20 |extword(|"");./* |
|00003d50| 72 65 73 65 74 20 74 6f | 20 62 65 67 69 6e 6e 69 |reset to| beginni|
|00003d60| 6e 67 20 6f 66 20 6c 69 | 6e 65 20 2a 2f 0a 09 09 |ng of li|ne */...|
|00003d70| 2f 2a 20 70 72 69 6e 74 | 66 28 22 6c 69 6e 65 20 |/* print|f("line |
|00003d80| 3d 20 25 73 5c 6e 22 2c | 6d 79 62 75 66 29 3b 20 |= %s\n",|mybuf); |
|00003d90| 2a 2f 0a 09 09 73 74 72 | 20 3d 20 6e 65 78 74 77 |*/...str| = nextw|
|00003da0| 6f 72 64 28 6d 79 62 75 | 66 29 3b 0a 09 09 69 66 |ord(mybu|f);...if|
|00003db0| 28 73 74 72 63 6d 70 28 | 73 74 72 2c 22 63 68 61 |(strcmp(|str,"cha|
|00003dc0| 72 73 65 74 22 29 20 3d | 3d 20 30 29 0a 09 09 09 |rset") =|= 0)....|
|00003dd0| 62 72 65 61 6b 3b 0a 09 | 09 69 66 28 73 74 72 63 |break;..|.if(strc|
|00003de0| 6d 70 28 73 74 72 2c 22 | 72 65 73 22 29 20 3d 3d |mp(str,"|res") ==|
|00003df0| 20 30 29 0a 09 09 09 64 | 65 76 2e 72 65 73 20 3d | 0)....d|ev.res =|
|00003e00| 20 28 73 68 6f 72 74 29 | 61 74 6f 69 28 6e 65 78 | (short)|atoi(nex|
|00003e10| 74 77 6f 72 64 28 6d 79 | 62 75 66 29 29 3b 0a 09 |tword(my|buf));..|
|00003e20| 09 65 6c 73 65 20 69 66 | 28 73 74 72 63 6d 70 28 |.else if|(strcmp(|
|00003e30| 73 74 72 2c 22 68 6f 72 | 22 29 20 3d 3d 20 30 29 |str,"hor|") == 0)|
|00003e40| 0a 09 09 09 64 65 76 2e | 68 6f 72 20 3d 20 28 73 |....dev.|hor = (s|
|00003e50| 68 6f 72 74 29 61 74 6f | 69 28 6e 65 78 74 77 6f |hort)ato|i(nextwo|
|00003e60| 72 64 28 6d 79 62 75 66 | 29 29 3b 0a 09 09 65 6c |rd(mybuf|));...el|
|00003e70| 73 65 20 69 66 28 73 74 | 72 63 6d 70 28 73 74 72 |se if(st|rcmp(str|
|00003e80| 2c 22 76 65 72 74 22 29 | 20 3d 3d 20 30 29 0a 09 |,"vert")| == 0)..|
|00003e90| 09 09 64 65 76 2e 76 65 | 72 74 20 3d 20 28 73 68 |..dev.ve|rt = (sh|
|00003ea0| 6f 72 74 29 61 74 6f 69 | 28 6e 65 78 74 77 6f 72 |ort)atoi|(nextwor|
|00003eb0| 64 28 6d 79 62 75 66 29 | 29 3b 0a 09 09 65 6c 73 |d(mybuf)|);...els|
|00003ec0| 65 20 69 66 28 73 74 72 | 63 6d 70 28 73 74 72 2c |e if(str|cmp(str,|
|00003ed0| 22 75 6e 69 74 77 69 64 | 74 68 22 29 20 3d 3d 20 |"unitwid|th") == |
|00003ee0| 30 29 0a 09 09 09 64 65 | 76 2e 75 6e 69 74 77 69 |0)....de|v.unitwi|
|00003ef0| 64 74 68 20 3d 20 28 73 | 68 6f 72 74 29 61 74 6f |dth = (s|hort)ato|
|00003f00| 69 28 6e 65 78 74 77 6f | 72 64 28 6d 79 62 75 66 |i(nextwo|rd(mybuf|
|00003f10| 29 29 3b 0a 09 09 65 6c | 73 65 20 69 66 28 73 74 |));...el|se if(st|
|00003f20| 72 63 6d 70 28 73 74 72 | 2c 22 73 69 7a 65 73 63 |rcmp(str|,"sizesc|
|00003f30| 61 6c 65 22 29 20 3d 3d | 20 30 29 0a 09 09 09 64 |ale") ==| 0)....d|
|00003f40| 65 76 2e 73 69 7a 65 73 | 63 61 6c 65 20 3d 20 28 |ev.sizes|cale = (|
|00003f50| 73 68 6f 72 74 29 61 74 | 6f 69 28 6e 65 78 74 77 |short)at|oi(nextw|
|00003f60| 6f 72 64 28 6d 79 62 75 | 66 29 29 3b 0a 09 09 65 |ord(mybu|f));...e|
|00003f70| 6c 73 65 20 69 66 28 73 | 74 72 63 6d 70 28 73 74 |lse if(s|trcmp(st|
|00003f80| 72 2c 22 70 61 70 65 72 | 77 69 64 74 68 22 29 20 |r,"paper|width") |
|00003f90| 3d 3d 20 30 29 0a 09 09 | 09 64 65 76 2e 70 61 70 |== 0)...|.dev.pap|
|00003fa0| 65 72 77 69 64 74 68 20 | 3d 20 28 73 68 6f 72 74 |erwidth |= (short|
|00003fb0| 29 61 74 6f 69 28 6e 65 | 78 74 77 6f 72 64 28 6d |)atoi(ne|xtword(m|
|00003fc0| 79 62 75 66 29 29 3b 0a | 09 09 65 6c 73 65 20 69 |ybuf));.|..else i|
|00003fd0| 66 28 73 74 72 63 6d 70 | 28 73 74 72 2c 22 70 61 |f(strcmp|(str,"pa|
|00003fe0| 70 65 72 6c 65 6e 67 74 | 68 22 29 20 3d 3d 20 30 |perlengt|h") == 0|
|00003ff0| 29 0a 09 09 09 64 65 76 | 2e 70 61 70 65 72 6c 65 |)....dev|.paperle|
|00004000| 6e 67 74 68 20 3d 20 28 | 73 68 6f 72 74 29 61 74 |ngth = (|short)at|
|00004010| 6f 69 28 6e 65 78 74 77 | 6f 72 64 28 6d 79 62 75 |oi(nextw|ord(mybu|
|00004020| 66 29 29 3b 0a 09 09 65 | 6c 73 65 20 69 66 28 73 |f));...e|lse if(s|
|00004030| 74 72 63 6d 70 28 73 74 | 72 2c 22 62 69 67 67 65 |trcmp(st|r,"bigge|
|00004040| 73 74 66 6f 6e 74 22 29 | 20 3d 3d 20 30 29 0a 09 |stfont")| == 0)..|
|00004050| 09 7b 0a 09 09 09 62 69 | 67 67 65 73 74 66 6f 6e |.{....bi|ggestfon|
|00004060| 74 20 3d 20 61 74 6f 69 | 28 6e 65 78 74 77 6f 72 |t = atoi|(nextwor|
|00004070| 64 28 6d 79 62 75 66 29 | 29 3b 0a 09 09 09 64 65 |d(mybuf)|);....de|
|00004080| 76 2e 62 69 67 67 65 73 | 74 66 6f 6e 74 20 3d 20 |v.bigges|tfont = |
|00004090| 28 73 68 6f 72 74 29 62 | 69 67 67 65 73 74 66 6f |(short)b|iggestfo|
|000040a0| 6e 74 3b 0a 09 09 7d 0a | 09 09 65 6c 73 65 20 69 |nt;...}.|..else i|
|000040b0| 66 28 73 74 72 63 6d 70 | 28 73 74 72 2c 22 73 69 |f(strcmp|(str,"si|
|000040c0| 7a 65 73 22 29 20 3d 3d | 20 30 29 0a 09 09 7b 0a |zes") ==| 0)...{.|
|000040d0| 09 09 09 2f 2a 20 61 63 | 63 75 6d 75 6c 61 74 65 |.../* ac|cumulate|
|000040e0| 20 74 68 65 20 6c 69 73 | 74 20 6f 66 20 6c 65 67 | the lis|t of leg|
|000040f0| 61 6c 20 70 6f 69 6e 74 | 20 73 69 7a 65 73 20 2a |al point| sizes *|
|00004100| 2f 0a 09 09 09 70 6f 69 | 6e 74 5f 6c 69 73 74 20 |/....poi|nt_list |
|00004110| 3d 20 70 5f 73 69 7a 65 | 73 28 69 6e 70 74 72 2c |= p_size|s(inptr,|
|00004120| 6d 79 62 75 66 2c 26 64 | 65 76 29 3b 0a 09 09 7d |mybuf,&d|ev);...}|
|00004130| 0a 09 09 65 6c 73 65 20 | 69 66 28 73 74 72 63 6d |...else |if(strcm|
|00004140| 70 28 73 74 72 2c 22 66 | 6f 6e 74 73 22 29 20 3d |p(str,"f|onts") =|
|00004150| 3d 20 30 29 0a 09 09 7b | 0a 09 09 09 64 65 76 2e |= 0)...{|....dev.|
|00004160| 6e 66 6f 6e 74 73 20 3d | 20 28 73 68 6f 72 74 29 |nfonts =| (short)|
|00004170| 61 74 6f 69 28 6e 65 78 | 74 77 6f 72 64 28 6d 79 |atoi(nex|tword(my|
|00004180| 62 75 66 29 29 3b 0a 09 | 09 09 66 6f 6e 74 5f 6c |buf));..|..font_l|
|00004190| 69 73 74 20 3d 20 66 6f | 6e 74 5f 6e 61 6d 65 73 |ist = fo|nt_names|
|000041a0| 28 69 6e 70 74 72 2c 6d | 79 62 75 66 2c 64 65 76 |(inptr,m|ybuf,dev|
|000041b0| 2e 6e 66 6f 6e 74 73 29 | 3b 0a 09 09 09 67 6f 74 |.nfonts)|;....got|
|000041c0| 6f 20 73 74 61 72 74 3b | 0a 09 09 7d 0a 09 7d 0a |o start;|...}..}.|
|000041d0| 09 6e 65 78 74 77 6f 72 | 64 28 22 22 29 3b 0a 09 |.nextwor|d("");..|
|000041e0| 2f 2a 20 4e 65 78 74 20 | 63 6f 6d 65 73 20 74 68 |/* Next |comes th|
|000041f0| 65 20 66 75 6e 6e 79 20 | 69 6e 64 65 78 20 74 61 |e funny |index ta|
|00004200| 62 6c 65 20 61 6e 64 20 | 74 68 65 20 63 68 61 72 |ble and |the char|
|00004210| 61 63 74 65 72 20 73 74 | 72 69 6e 67 73 3b 20 72 |acter st|rings; r|
|00004220| 65 61 64 0a 09 20 2a 20 | 74 68 65 20 64 65 73 63 |ead.. * |the desc|
|00004230| 72 69 70 74 69 6f 6e 20 | 61 6e 64 20 73 74 75 66 |ription |and stuf|
|00004240| 66 20 74 68 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |f the in|formatio|
|00004250| 6e 20 69 6e 74 6f 20 74 | 68 65 20 62 69 6e 61 72 |n into t|he binar|
|00004260| 79 20 66 6f 72 6d 61 74 | 20 0a 09 20 2a 20 74 61 |y format| .. * ta|
|00004270| 62 6c 65 73 2e 0a 09 20 | 2a 2f 0a 09 69 66 28 66 |bles... |*/..if(f|
|00004280| 67 65 74 73 28 6d 79 62 | 75 66 2c 31 30 32 34 2c |gets(myb|uf,1024,|
|00004290| 69 6e 70 74 72 29 20 3d | 3d 20 28 63 68 61 72 20 |inptr) =|= (char |
|000042a0| 2a 29 30 29 0a 09 7b 0a | 09 09 66 70 72 69 6e 74 |*)0)..{.|..fprint|
|000042b0| 66 28 73 74 64 65 72 72 | 2c 22 25 73 3a 20 6e 6f |f(stderr|,"%s: no|
|000042c0| 20 66 75 6e 6e 79 20 63 | 68 61 72 20 73 74 72 69 | funny c|har stri|
|000042d0| 6e 67 73 20 74 61 62 6c | 65 5c 6e 22 2c 50 72 6f |ngs tabl|e\n",Pro|
|000042e0| 67 6e 61 6d 65 29 3b 0a | 09 09 65 78 69 74 28 31 |gname);.|..exit(1|
|000042f0| 29 3b 0a 09 7d 0a 09 6e | 63 68 74 61 62 20 3d 20 |);..}..n|chtab = |
|00004300| 67 65 74 5f 66 75 6e 6e | 79 28 69 6e 70 74 72 2c |get_funn|y(inptr,|
|00004310| 6d 79 62 75 66 2c 26 66 | 75 6e 6e 79 5f 69 6e 64 |mybuf,&f|unny_ind|
|00004320| 2c 26 66 75 6e 6e 79 5f | 63 68 61 72 73 2c 26 6c |,&funny_|chars,&l|
|00004330| 63 68 6e 61 6d 65 29 3b | 0a 09 64 65 76 2e 6e 63 |chname);|..dev.nc|
|00004340| 68 74 61 62 20 3d 20 28 | 73 68 6f 72 74 29 6e 63 |htab = (|short)nc|
|00004350| 68 74 61 62 3b 0a 09 64 | 65 76 2e 6c 63 68 6e 61 |htab;..d|ev.lchna|
|00004360| 6d 65 20 3d 20 28 73 68 | 6f 72 74 29 6c 63 68 6e |me = (sh|ort)lchn|
|00004370| 61 6d 65 3b 0a 0a 09 2f | 2a 20 57 65 20 64 6f 6e |ame;.../|* We don|
|00004380| 27 74 20 68 61 76 65 20 | 65 6e 6f 75 67 68 20 69 |'t have |enough i|
|00004390| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 79 65 74 20 74 |nformati|on yet t|
|000043a0| 6f 20 77 72 69 74 65 20 | 74 68 65 20 64 65 76 20 |o write |the dev |
|000043b0| 73 74 72 75 63 74 75 72 | 65 0a 09 20 2a 20 28 64 |structur|e.. * (d|
|000043c0| 6f 6e 27 74 20 6b 6e 6f | 77 20 68 6f 77 20 6d 61 |on't kno|w how ma|
|000043d0| 6e 79 20 66 6f 6e 74 73 | 2c 20 6f 72 20 74 68 65 |ny fonts|, or the|
|000043e0| 69 72 20 6e 61 6d 65 73 | 2e 2e 2e 29 2e 20 20 57 |ir names|...). W|
|000043f0| 65 20 64 6f 20 6b 6e 6f | 77 20 68 6f 77 0a 09 20 |e do kno|w how.. |
|00004400| 2a 20 62 69 67 20 69 74 | 20 69 73 2c 20 61 6e 64 |* big it| is, and|
|00004410| 20 68 6f 77 20 6c 6f 6e | 67 20 74 68 65 20 64 65 | how lon|g the de|
|00004420| 73 63 72 69 70 74 69 6f | 6e 20 74 61 62 6c 65 73 |scriptio|n tables|
|00004430| 20 61 72 65 2c 20 73 6f | 20 77 65 20 73 65 65 6b | are, so| we seek|
|00004440| 0a 09 20 2a 20 70 61 73 | 74 20 61 6c 6c 20 74 68 |.. * pas|t all th|
|00004450| 61 74 20 73 74 75 66 66 | 20 61 6e 64 64 20 77 72 |at stuff| andd wr|
|00004460| 69 74 65 20 74 68 65 20 | 66 6f 6e 74 20 64 65 73 |ite the |font des|
|00004470| 63 72 69 70 74 69 6f 6e | 73 20 66 69 72 73 74 2e |cription|s first.|
|00004480| 0a 09 20 2a 20 4c 61 74 | 65 72 2c 20 77 65 27 6c |.. * Lat|er, we'l|
|00004490| 6c 20 67 6f 20 62 61 63 | 6b 20 61 6e 64 20 77 72 |l go bac|k and wr|
|000044a0| 69 74 65 20 74 68 65 20 | 73 74 75 66 66 20 77 65 |ite the |stuff we|
|000044b0| 20 73 6b 69 70 70 65 64 | 20 6f 76 65 72 2e 0a 09 | skipped| over...|
|000044c0| 20 2a 2f 0a 09 66 6f 6e | 74 66 5f 73 74 61 72 74 | */..fon|tf_start|
|000044d0| 20 3d 20 28 6c 6f 6e 67 | 29 28 73 69 7a 65 6f 66 | = (long|)(sizeof|
|000044e0| 28 64 65 76 29 20 2b 20 | 28 28 64 65 76 2e 6e 73 |(dev) + |((dev.ns|
|000044f0| 69 7a 65 73 20 2b 31 29 | 20 2a 20 73 69 7a 65 6f |izes +1)| * sizeo|
|00004500| 66 28 73 68 6f 72 74 29 | 29 0a 09 09 09 09 09 2b |f(short)|)......+|
|00004510| 20 28 6e 63 68 74 61 62 | 20 2a 20 73 69 7a 65 6f | (nchtab| * sizeo|
|00004520| 66 28 73 68 6f 72 74 29 | 29 20 2b 20 6c 63 68 6e |f(short)|) + lchn|
|00004530| 61 6d 65 29 3b 0a 09 28 | 76 6f 69 64 29 6c 73 65 |ame);..(|void)lse|
|00004540| 65 6b 28 66 64 6f 75 74 | 2c 66 6f 6e 74 66 5f 73 |ek(fdout|,fontf_s|
|00004550| 74 61 72 74 2c 30 29 3b | 0a 0a 09 2f 2a 20 52 65 |tart,0);|.../* Re|
|00004560| 61 64 20 74 68 65 20 66 | 6f 6e 74 20 66 69 6c 65 |ad the f|ont file|
|00004570| 73 2c 20 61 6e 64 20 77 | 72 69 74 65 20 74 68 65 |s, and w|rite the|
|00004580| 20 62 69 6e 61 72 79 20 | 65 71 75 69 76 61 6c 65 | binary |equivale|
|00004590| 6e 74 73 20 2a 2f 0a 09 | 66 6f 72 28 69 20 3d 20 |nts */..|for(i = |
|000045a0| 30 3b 20 69 20 3c 20 28 | 69 6e 74 29 64 65 76 2e |0; i < (|int)dev.|
|000045b0| 6e 66 6f 6e 74 73 3b 20 | 2b 2b 69 29 0a 09 7b 0a |nfonts; |++i)..{.|
|000045c0| 09 09 66 73 69 7a 65 20 | 3d 20 64 6f 5f 66 6f 6e |..fsize |= do_fon|
|000045d0| 74 28 66 6f 6e 74 5f 6c | 69 73 74 5b 69 5d 2c 66 |t(font_l|ist[i],f|
|000045e0| 75 6e 6e 79 5f 63 68 61 | 72 73 2c 66 75 6e 6e 79 |unny_cha|rs,funny|
|000045f0| 5f 69 6e 64 2c 6e 63 68 | 74 61 62 2c 66 64 6f 75 |_ind,nch|tab,fdou|
|00004600| 74 29 3b 0a 09 09 2f 2a | 20 6b 65 65 70 20 74 72 |t);.../*| keep tr|
|00004610| 61 63 6b 20 6f 66 20 74 | 68 65 20 62 69 67 67 65 |ack of t|he bigge|
|00004620| 73 74 20 66 6f 6e 74 20 | 2a 2f 0a 09 09 69 66 28 |st font |*/...if(|
|00004630| 66 73 69 7a 65 20 3e 20 | 62 69 67 67 65 73 74 66 |fsize > |biggestf|
|00004640| 6f 6e 74 29 0a 09 09 09 | 62 69 67 67 65 73 74 66 |ont)....|biggestf|
|00004650| 6f 6e 74 20 3d 20 66 73 | 69 7a 65 3b 0a 09 7d 0a |ont = fs|ize;..}.|
|00004660| 09 64 65 76 2e 62 69 67 | 67 65 73 74 66 6f 6e 74 |.dev.big|gestfont|
|00004670| 20 3d 20 28 73 68 6f 72 | 74 29 28 62 69 67 67 65 | = (shor|t)(bigge|
|00004680| 73 74 66 6f 6e 74 20 26 | 20 53 48 4f 52 54 29 3b |stfont &| SHORT);|
|00004690| 0a 09 64 65 76 2e 66 69 | 6c 65 73 69 7a 65 20 3d |..dev.fi|lesize =|
|000046a0| 20 28 75 6e 73 69 67 6e | 65 64 20 73 68 6f 72 74 | (unsign|ed short|
|000046b0| 29 28 6c 73 65 65 6b 28 | 66 64 6f 75 74 2c 30 4c |)(lseek(|fdout,0L|
|000046c0| 2c 32 29 20 2d 20 73 69 | 7a 65 6f 66 28 64 65 76 |,2) - si|zeof(dev|
|000046d0| 29 29 3b 0a 09 77 72 69 | 74 65 5f 64 65 73 63 28 |));..wri|te_desc(|
|000046e0| 66 64 6f 75 74 2c 26 64 | 65 76 2c 70 6f 69 6e 74 |fdout,&d|ev,point|
|000046f0| 5f 6c 69 73 74 2c 66 75 | 6e 6e 79 5f 69 6e 64 2c |_list,fu|nny_ind,|
|00004700| 66 75 6e 6e 79 5f 63 68 | 61 72 73 29 3b 0a 09 65 |funny_ch|ars);..e|
|00004710| 78 69 74 28 30 29 3b 0a | 7d 0a 0a 2f 2a 20 52 65 |xit(0);.|}../* Re|
|00004720| 61 64 20 74 68 65 20 70 | 6f 69 6e 74 20 73 69 7a |ad the p|oint siz|
|00004730| 65 73 20 6c 69 73 74 20 | 2a 2f 0a 0a 73 68 6f 72 |es list |*/..shor|
|00004740| 74 20 2a 0a 70 5f 73 69 | 7a 65 73 28 69 6e 70 74 |t *.p_si|zes(inpt|
|00004750| 72 2c 62 75 66 2c 64 65 | 76 29 0a 46 49 4c 45 20 |r,buf,de|v).FILE |
|00004760| 2a 69 6e 70 74 72 3b 0a | 63 68 61 72 20 2a 62 75 |*inptr;.|char *bu|
|00004770| 66 3b 0a 73 74 72 75 63 | 74 20 64 65 76 20 2a 64 |f;.struc|t dev *d|
|00004780| 65 76 3b 0a 7b 0a 09 73 | 68 6f 72 74 20 2a 70 6c |ev;.{..s|hort *pl|
|00004790| 2c 2a 72 65 74 3b 0a 09 | 63 68 61 72 20 2a 77 6f |,*ret;..|char *wo|
|000047a0| 72 64 2c 2a 72 65 61 6c | 6c 6f 63 28 29 3b 0a 09 |rd,*real|loc();..|
|000047b0| 69 6e 74 20 6e 77 6f 72 | 64 73 20 3d 20 30 3b 0a |int nwor|ds = 0;.|
|000047c0| 09 69 6e 74 20 6e 3b 0a | 0a 09 2f 2a 20 61 6c 6c |.int n;.|../* all|
|000047d0| 6f 77 20 66 6f 72 20 4d | 41 58 50 20 70 6f 69 6e |ow for M|AXP poin|
|000047e0| 74 20 73 69 7a 65 73 3b | 20 77 65 20 68 61 76 65 |t sizes;| we have|
|000047f0| 20 74 6f 20 72 65 61 6c | 6c 6f 63 61 74 65 20 69 | to real|locate i|
|00004800| 66 20 77 65 20 65 78 63 | 65 65 64 20 74 68 61 74 |f we exc|eed that|
|00004810| 20 2a 2f 0a 09 72 65 74 | 20 3d 20 70 6c 20 3d 20 | */..ret| = pl = |
|00004820| 28 73 68 6f 72 74 20 2a | 29 6d 61 6c 6c 6f 63 28 |(short *|)malloc(|
|00004830| 28 75 6e 73 69 67 6e 65 | 64 29 28 4d 41 58 50 20 |(unsigne|d)(MAXP |
|00004840| 2a 20 73 69 7a 65 6f 66 | 28 73 68 6f 72 74 29 29 |* sizeof|(short))|
|00004850| 29 3b 0a 09 69 66 28 21 | 70 6c 29 0a 09 7b 0a 09 |);..if(!|pl)..{..|
|00004860| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00004870| 22 63 61 6e 27 74 20 6d | 61 6c 6c 6f 63 20 73 70 |"can't m|alloc sp|
|00004880| 61 63 65 20 66 6f 72 20 | 70 73 69 7a 65 73 5c 6e |ace for |psizes\n|
|00004890| 22 2c 50 72 6f 67 6e 61 | 6d 65 29 3b 0a 09 09 65 |",Progna|me);...e|
|000048a0| 78 69 74 28 31 29 3b 0a | 09 7d 0a 09 6e 20 3d 20 |xit(1);.|.}..n = |
|000048b0| 31 3b 0a 09 77 68 69 6c | 65 28 28 77 6f 72 64 20 |1;..whil|e((word |
|000048c0| 3d 20 6e 65 78 74 77 6f | 72 64 28 62 75 66 29 29 |= nextwo|rd(buf))|
|000048d0| 20 7c 7c 20 66 67 65 74 | 73 28 62 75 66 2c 31 30 | || fget|s(buf,10|
|000048e0| 32 34 2c 69 6e 70 74 72 | 29 29 0a 09 7b 0a 09 09 |24,inptr|))..{...|
|000048f0| 69 66 28 21 77 6f 72 64 | 29 0a 09 09 7b 0a 09 09 |if(!word|)...{...|
|00004900| 09 6e 65 78 74 77 6f 72 | 64 28 22 22 29 3b 0a 09 |.nextwor|d("");..|
|00004910| 09 09 77 6f 72 64 20 3d | 20 6e 65 78 74 77 6f 72 |..word =| nextwor|
|00004920| 64 28 62 75 66 29 3b 0a | 09 09 7d 0a 09 09 69 66 |d(buf);.|..}...if|
|00004930| 28 21 77 6f 72 64 29 09 | 2f 2a 20 72 61 6e 20 6f |(!word).|/* ran o|
|00004940| 75 74 20 6f 66 20 77 6f | 72 64 73 20 74 68 69 73 |ut of wo|rds this|
|00004950| 20 6c 69 6e 65 2c 20 68 | 61 64 20 74 6f 20 66 67 | line, h|ad to fg|
|00004960| 65 74 73 20 6d 6f 72 65 | 20 2a 2f 0a 09 09 7b 0a |ets more| */...{.|
|00004970| 09 09 09 6e 65 78 74 77 | 6f 72 64 28 22 22 29 3b |...nextw|ord("");|
|00004980| 0a 09 09 09 69 66 28 66 | 67 65 74 73 28 62 75 66 |....if(f|gets(buf|
|00004990| 2c 31 30 32 34 2c 69 6e | 70 74 72 29 29 0a 09 09 |,1024,in|ptr))...|
|000049a0| 09 09 77 6f 72 64 20 3d | 20 6e 65 78 74 77 6f 72 |..word =| nextwor|
|000049b0| 64 28 62 75 66 29 3b 0a | 09 09 09 65 6c 73 65 0a |d(buf);.|...else.|
|000049c0| 09 09 09 7b 0a 09 09 09 | 09 2a 62 75 66 20 3d 20 |...{....|.*buf = |
|000049d0| 27 5c 30 27 3b 0a 09 09 | 09 09 62 72 65 61 6b 3b |'\0';...|..break;|
|000049e0| 0a 09 09 09 7d 0a 09 09 | 7d 0a 09 09 6e 77 6f 72 |....}...|}...nwor|
|000049f0| 64 73 2b 2b 3b 0a 09 09 | 69 66 28 6e 77 6f 72 64 |ds++;...|if(nword|
|00004a00| 73 20 3e 3d 20 4d 41 58 | 50 29 0a 09 09 7b 0a 09 |s >= MAX|P)...{..|
|00004a10| 09 09 2f 2a 20 4f 6f 70 | 73 21 20 72 61 6e 20 6f |../* Oop|s! ran o|
|00004a20| 75 74 20 6f 73 20 73 70 | 61 63 65 3b 20 67 65 74 |ut os sp|ace; get|
|00004a30| 20 6d 6f 72 65 20 2a 2f | 0a 09 09 09 72 65 74 20 | more */|....ret |
|00004a40| 3d 20 28 73 68 6f 72 74 | 20 2a 29 72 65 61 6c 6c |= (short| *)reall|
|00004a50| 6f 63 28 28 63 68 61 72 | 20 2a 29 72 65 74 2c 28 |oc((char| *)ret,(|
|00004a60| 75 6e 73 69 67 6e 65 64 | 29 28 4d 41 58 50 20 2a |unsigned|)(MAXP *|
|00004a70| 20 2b 2b 6e 20 2a 20 73 | 69 7a 65 6f 66 28 73 68 | ++n * s|izeof(sh|
|00004a80| 6f 72 74 29 29 29 3b 0a | 09 09 09 70 6c 20 3d 20 |ort)));.|...pl = |
|00004a90| 26 72 65 74 5b 6e 77 6f | 72 64 73 5d 3b 09 2f 2a |&ret[nwo|rds];./*|
|00004aa0| 20 63 6f 75 6c 64 20 68 | 61 76 65 20 6d 6f 76 65 | could h|ave move|
|00004ab0| 64 20 2a 2f 0a 09 09 7d | 0a 09 09 2a 70 6c 20 3d |d */...}|...*pl =|
|00004ac0| 20 28 73 68 6f 72 74 29 | 61 74 6f 69 28 77 6f 72 | (short)|atoi(wor|
|00004ad0| 64 29 3b 0a 09 09 69 66 | 28 2a 70 6c 20 3d 3d 20 |d);...if|(*pl == |
|00004ae0| 28 73 68 6f 72 74 29 30 | 29 0a 09 09 09 62 72 65 |(short)0|)....bre|
|00004af0| 61 6b 3b 0a 09 09 2b 2b | 70 6c 3b 0a 09 7d 0a 09 |ak;...++|pl;..}..|
|00004b00| 2f 2a 20 64 6f 6e 27 74 | 20 63 6f 75 6e 74 20 74 |/* don't| count t|
|00004b10| 68 65 20 7a 65 72 6f 20 | 61 74 20 74 68 65 20 65 |he zero |at the e|
|00004b20| 6e 64 20 2a 2f 0a 09 2d | 2d 6e 77 6f 72 64 73 3b |nd */..-|-nwords;|
|00004b30| 0a 09 64 65 76 2d 3e 6e | 73 69 7a 65 73 20 3d 20 |..dev->n|sizes = |
|00004b40| 28 73 68 6f 72 74 29 6e | 77 6f 72 64 73 3b 0a 09 |(short)n|words;..|
|00004b50| 72 65 74 75 72 6e 28 72 | 65 74 29 3b 0a 7d 0a 0a |return(r|et);.}..|
|00004b60| 2f 2a 20 52 65 61 64 20 | 61 6e 64 20 73 61 76 65 |/* Read |and save|
|00004b70| 20 74 68 65 20 66 6f 6e | 74 20 6e 61 6d 65 73 3b | the fon|t names;|
|00004b80| 20 72 65 74 75 72 6e 20 | 74 68 65 20 6c 69 73 74 | return |the list|
|00004b90| 20 2a 2f 0a 0a 63 68 61 | 72 20 2a 2a 0a 66 6f 6e | */..cha|r **.fon|
|00004ba0| 74 5f 6e 61 6d 65 73 28 | 69 6e 70 74 72 2c 62 75 |t_names(|inptr,bu|
|00004bb0| 66 2c 6e 66 6f 6e 74 73 | 29 0a 46 49 4c 45 20 2a |f,nfonts|).FILE *|
|00004bc0| 69 6e 70 74 72 3b 0a 63 | 68 61 72 20 2a 62 75 66 |inptr;.c|har *buf|
|00004bd0| 3b 0a 73 68 6f 72 74 20 | 6e 66 6f 6e 74 73 3b 0a |;.short |nfonts;.|
|00004be0| 7b 0a 09 63 68 61 72 20 | 2a 2a 72 65 74 2c 2a 2a |{..char |**ret,**|
|00004bf0| 6e 65 78 74 3b 0a 09 63 | 68 61 72 20 2a 77 6f 72 |next;..c|har *wor|
|00004c00| 64 3b 0a 09 69 6e 74 20 | 6e 77 6f 72 64 73 20 3d |d;..int |nwords =|
|00004c10| 20 30 3b 0a 0a 09 72 65 | 74 20 3d 20 6e 65 78 74 | 0;...re|t = next|
|00004c20| 20 3d 20 28 63 68 61 72 | 20 2a 2a 29 6d 61 6c 6c | = (char| **)mall|
|00004c30| 6f 63 28 28 75 6e 73 69 | 67 6e 65 64 29 28 28 6e |oc((unsi|gned)((n|
|00004c40| 66 6f 6e 74 73 20 2b 20 | 31 29 20 2a 20 73 69 7a |fonts + |1) * siz|
|00004c50| 65 6f 66 28 63 68 61 72 | 20 2a 29 29 29 3b 0a 0a |eof(char| *)));..|
|00004c60| 09 77 68 69 6c 65 28 28 | 77 6f 72 64 20 3d 20 6e |.while((|word = n|
|00004c70| 65 78 74 77 6f 72 64 28 | 62 75 66 29 29 20 7c 7c |extword(|buf)) |||
|00004c80| 20 66 67 65 74 73 28 62 | 75 66 2c 31 30 32 34 2c | fgets(b|uf,1024,|
|00004c90| 69 6e 70 74 72 29 29 0a | 09 7b 0a 09 09 69 66 28 |inptr)).|.{...if(|
|00004ca0| 21 77 6f 72 64 29 0a 09 | 09 7b 0a 09 09 09 6e 65 |!word)..|.{....ne|
|00004cb0| 78 74 77 6f 72 64 28 22 | 22 29 3b 0a 09 09 09 77 |xtword("|");....w|
|00004cc0| 6f 72 64 20 3d 20 6e 65 | 78 74 77 6f 72 64 28 62 |ord = ne|xtword(b|
|00004cd0| 75 66 29 3b 0a 09 09 7d | 0a 09 09 2a 6e 65 78 74 |uf);...}|...*next|
|00004ce0| 2b 2b 20 3d 20 73 61 76 | 65 73 74 72 28 77 6f 72 |++ = sav|estr(wor|
|00004cf0| 64 29 3b 0a 09 09 69 66 | 28 2b 2b 6e 77 6f 72 64 |d);...if|(++nword|
|00004d00| 73 20 3e 3d 20 28 69 6e | 74 29 6e 66 6f 6e 74 73 |s >= (in|t)nfonts|
|00004d10| 29 0a 09 09 7b 0a 09 09 | 09 2f 2a 20 6d 61 69 6e |)...{...|./* main|
|00004d20| 28 29 20 65 78 70 65 63 | 74 73 20 61 20 6e 65 77 |() expec|ts a new|
|00004d30| 20 62 75 66 66 65 72 20 | 2a 2f 0a 09 09 09 66 67 | buffer |*/....fg|
|00004d40| 65 74 73 28 62 75 66 2c | 31 30 32 34 2c 69 6e 70 |ets(buf,|1024,inp|
|00004d50| 74 72 29 3b 0a 09 09 09 | 62 72 65 61 6b 3b 0a 09 |tr);....|break;..|
|00004d60| 09 7d 0a 09 7d 0a 09 2a | 6e 65 78 74 20 3d 20 28 |.}..}..*|next = (|
|00004d70| 63 68 61 72 20 2a 29 30 | 3b 0a 09 69 66 28 6e 77 |char *)0|;..if(nw|
|00004d80| 6f 72 64 73 20 21 3d 20 | 28 69 6e 74 29 6e 66 6f |ords != |(int)nfo|
|00004d90| 6e 74 73 29 0a 09 09 70 | 72 69 6e 74 66 28 22 25 |nts)...p|rintf("%|
|00004da0| 73 3a 20 77 61 72 6e 69 | 6e 67 3b 20 6f 6e 6c 79 |s: warni|ng; only|
|00004db0| 20 67 6f 74 20 25 64 20 | 6f 66 20 25 64 20 66 6f | got %d |of %d fo|
|00004dc0| 6e 74 20 6e 61 6d 65 73 | 5c 6e 22 2c 50 72 6f 67 |nt names|\n",Prog|
|00004dd0| 6e 61 6d 65 2c 6e 77 6f | 72 64 73 2c 28 69 6e 74 |name,nwo|rds,(int|
|00004de0| 29 6e 66 6f 6e 74 73 29 | 3b 0a 09 72 65 74 75 72 |)nfonts)|;..retur|
|00004df0| 6e 28 72 65 74 29 3b 0a | 7d 0a 0a 0a 2f 2a 20 52 |n(ret);.|}.../* R|
|00004e00| 65 61 64 20 74 68 65 20 | 73 70 65 63 69 61 6c 20 |ead the |special |
|00004e10| 63 68 61 72 61 63 74 65 | 72 20 73 74 72 69 6e 67 |characte|r string|
|00004e20| 73 2c 20 61 6e 64 20 73 | 65 74 20 75 70 20 74 68 |s, and s|et up th|
|00004e30| 65 20 73 74 72 69 6e 67 | 20 74 61 62 6c 65 20 61 |e string| table a|
|00004e40| 6e 64 0a 20 2a 20 74 68 | 65 20 69 6e 64 65 78 20 |nd. * th|e index |
|00004e50| 69 6e 74 6f 20 69 74 2e | 0a 20 2a 2f 0a 67 65 74 |into it.|. */.get|
|00004e60| 5f 66 75 6e 6e 79 28 69 | 6e 70 74 72 2c 6d 79 62 |_funny(i|nptr,myb|
|00004e70| 75 66 2c 66 75 6e 6e 79 | 5f 69 6e 64 2c 66 75 6e |uf,funny|_ind,fun|
|00004e80| 6e 79 5f 63 68 61 72 73 | 2c 6c 63 68 6e 61 6d 65 |ny_chars|,lchname|
|00004e90| 29 0a 46 49 4c 45 20 2a | 69 6e 70 74 72 3b 0a 63 |).FILE *|inptr;.c|
|00004ea0| 68 61 72 20 2a 6d 79 62 | 75 66 3b 0a 73 68 6f 72 |har *myb|uf;.shor|
|00004eb0| 74 20 2a 2a 66 75 6e 6e | 79 5f 69 6e 64 3b 0a 63 |t **funn|y_ind;.c|
|00004ec0| 68 61 72 20 2a 2a 66 75 | 6e 6e 79 5f 63 68 61 72 |har **fu|nny_char|
|00004ed0| 73 3b 0a 69 6e 74 20 2a | 6c 63 68 6e 61 6d 65 3b |s;.int *|lchname;|
|00004ee0| 0a 7b 0a 09 63 68 61 72 | 20 2a 66 63 74 3b 09 2f |.{..char| *fct;./|
|00004ef0| 2a 20 66 75 6e 6e 79 20 | 63 68 61 72 20 73 74 72 |* funny |char str|
|00004f00| 69 6e 67 20 74 61 62 6c | 65 20 2a 2f 0a 09 73 68 |ing tabl|e */..sh|
|00004f10| 6f 72 74 20 2a 66 63 69 | 3b 20 2f 2a 20 66 75 6e |ort *fci|; /* fun|
|00004f20| 6e 79 20 63 68 61 72 20 | 69 6e 64 65 78 09 09 20 |ny char |index.. |
|00004f30| 20 20 2a 2f 0a 09 69 6e | 74 20 69 20 3d 20 30 3b | */..in|t i = 0;|
|00004f40| 0a 09 69 6e 74 20 6c 61 | 73 74 70 20 3d 20 30 3b |..int la|stp = 0;|
|00004f50| 0a 09 63 68 61 72 20 2a | 73 74 72 3b 0a 0a 09 2f |..char *|str;.../|
|00004f60| 2a 20 61 6c 6c 6f 63 61 | 74 65 20 66 6f 72 20 32 |* alloca|te for 2|
|00004f70| 35 36 20 33 2d 63 68 61 | 72 61 63 74 65 72 20 73 |56 3-cha|racter s|
|00004f80| 74 72 69 6e 67 73 20 28 | 70 6c 75 73 20 6e 75 6c |trings (|plus nul|
|00004f90| 6c 29 20 09 09 09 2a 2f | 0a 09 2f 2a 20 57 65 20 |l) ...*/|../* We |
|00004fa0| 73 68 6f 75 6c 64 20 70 | 72 6f 62 61 62 6c 79 20 |should p|robably |
|00004fb0| 63 68 65 63 6b 20 66 6f | 72 20 6f 76 65 72 66 6c |check fo|r overfl|
|00004fc0| 6f 77 2c 20 62 75 74 20 | 49 20 63 61 6e 27 74 20 |ow, but |I can't |
|00004fd0| 69 6d 61 67 69 6e 65 20 | 61 09 2a 2f 0a 09 2f 2a |imagine |a.*/../*|
|00004fe0| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 74 20 77 | charact|er set w|
|00004ff0| 69 74 68 20 6d 6f 72 65 | 20 74 68 61 6e 20 32 35 |ith more| than 25|
|00005000| 36 20 73 70 65 63 69 61 | 6c 20 63 68 61 72 73 20 |6 specia|l chars |
|00005010| 28 46 4c 57 29 09 09 09 | 2a 2f 0a 0a 09 2a 66 75 |(FLW)...|*/...*fu|
|00005020| 6e 6e 79 5f 63 68 61 72 | 73 20 3d 20 66 63 74 20 |nny_char|s = fct |
|00005030| 3d 20 6d 61 6c 6c 6f 63 | 28 28 75 6e 73 69 67 6e |= malloc|((unsign|
|00005040| 65 64 29 37 36 38 29 3b | 0a 09 2a 66 75 6e 6e 79 |ed)768);|..*funny|
|00005050| 5f 69 6e 64 20 3d 20 66 | 63 69 20 3d 20 28 73 68 |_ind = f|ci = (sh|
|00005060| 6f 72 74 20 2a 29 6d 61 | 6c 6c 6f 63 28 28 75 6e |ort *)ma|lloc((un|
|00005070| 73 69 67 6e 65 64 29 28 | 32 35 37 20 2a 20 73 69 |signed)(|257 * si|
|00005080| 7a 65 6f 66 28 73 68 6f | 72 74 29 29 29 3b 0a 0a |zeof(sho|rt)));..|
|00005090| 09 2f 2a 20 61 73 73 75 | 6d 65 20 74 68 65 20 73 |./* assu|me the s|
|000050a0| 74 72 69 6e 67 73 20 73 | 74 61 72 74 20 6f 6e 20 |trings s|tart on |
|000050b0| 61 20 6e 65 77 20 6c 69 | 6e 65 20 2a 2f 0a 09 66 |a new li|ne */..f|
|000050c0| 63 69 5b 30 5d 20 3d 20 | 28 73 68 6f 72 74 29 30 |ci[0] = |(short)0|
|000050d0| 3b 0a 09 77 68 69 6c 65 | 28 28 73 74 72 20 3d 20 |;..while|((str = |
|000050e0| 6e 65 78 74 77 6f 72 64 | 28 6d 79 62 75 66 29 29 |nextword|(mybuf))|
|000050f0| 20 7c 7c 20 66 67 65 74 | 73 28 6d 79 62 75 66 2c | || fget|s(mybuf,|
|00005100| 31 30 32 34 2c 69 6e 70 | 74 72 29 29 0a 09 7b 0a |1024,inp|tr))..{.|
|00005110| 09 09 69 66 28 21 73 74 | 72 29 0a 09 09 7b 0a 09 |..if(!st|r)...{..|
|00005120| 09 09 6e 65 78 74 77 6f | 72 64 28 22 22 29 3b 0a |..nextwo|rd("");.|
|00005130| 09 09 09 73 74 72 20 3d | 20 6e 65 78 74 77 6f 72 |...str =| nextwor|
|00005140| 64 28 6d 79 62 75 66 29 | 3b 0a 09 09 09 69 66 28 |d(mybuf)|;....if(|
|00005150| 21 73 74 72 29 0a 09 09 | 09 09 63 6f 6e 74 69 6e |!str)...|..contin|
|00005160| 75 65 3b 0a 09 09 7d 0a | 09 09 28 76 6f 69 64 29 |ue;...}.|..(void)|
|00005170| 73 74 72 63 70 79 28 66 | 63 74 20 2b 20 6c 61 73 |strcpy(f|ct + las|
|00005180| 74 70 2c 73 74 72 29 3b | 0a 09 09 66 63 69 5b 69 |tp,str);|...fci[i|
|00005190| 2b 2b 5d 20 3d 20 28 73 | 68 6f 72 74 29 28 6c 61 |++] = (s|hort)(la|
|000051a0| 73 74 70 20 26 20 53 48 | 4f 52 54 29 3b 0a 09 09 |stp & SH|ORT);...|
|000051b0| 6c 61 73 74 70 20 2b 3d | 20 73 74 72 6c 65 6e 28 |lastp +=| strlen(|
|000051c0| 73 74 72 29 20 2b 20 31 | 3b 0a 09 09 69 66 28 69 |str) + 1|;...if(i|
|000051d0| 20 3e 20 32 35 36 29 0a | 09 09 7b 0a 09 09 09 66 | > 256).|..{....f|
|000051e0| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 22 25 |printf(s|tderr,"%|
|000051f0| 73 3a 20 74 6f 6f 20 6d | 61 6e 79 20 73 70 65 63 |s: too m|any spec|
|00005200| 69 61 6c 20 73 74 72 69 | 6e 67 73 20 28 3e 20 32 |ial stri|ngs (> 2|
|00005210| 35 36 29 5c 6e 22 2c 50 | 72 6f 67 6e 61 6d 65 29 |56)\n",P|rogname)|
|00005220| 3b 0a 09 09 09 62 72 65 | 61 6b 3b 0a 09 09 7d 0a |;....bre|ak;...}.|
|00005230| 09 7d 0a 09 66 63 69 5b | 69 2b 2b 5d 20 3d 20 28 |.}..fci[|i++] = (|
|00005240| 73 68 6f 72 74 29 30 3b | 0a 09 2a 6c 63 68 6e 61 |short)0;|..*lchna|
|00005250| 6d 65 20 3d 20 6c 61 73 | 74 70 3b 0a 09 72 65 74 |me = las|tp;..ret|
|00005260| 75 72 6e 28 69 29 3b 0a | 7d 0a 0a 2f 2a 20 57 72 |urn(i);.|}../* Wr|
|00005270| 69 74 65 20 6f 75 74 20 | 74 68 65 20 64 65 76 20 |ite out |the dev |
|00005280| 73 74 72 75 63 74 75 72 | 65 2c 74 68 65 20 73 69 |structur|e,the si|
|00005290| 7a 65 73 20 74 61 62 6c | 65 2c 20 61 6e 64 20 74 |zes tabl|e, and t|
|000052a0| 68 65 20 66 75 6e 6e 79 | 20 63 68 61 72 20 74 61 |he funny| char ta|
|000052b0| 62 6c 65 73 20 2a 2f 0a | 77 72 69 74 65 5f 64 65 |bles */.|write_de|
|000052c0| 73 63 28 66 64 6f 75 74 | 2c 64 65 76 2c 70 6f 69 |sc(fdout|,dev,poi|
|000052d0| 6e 74 5f 6c 69 73 74 2c | 66 75 6e 6e 79 5f 69 6e |nt_list,|funny_in|
|000052e0| 64 2c 66 75 6e 6e 79 5f | 63 68 61 72 73 29 0a 69 |d,funny_|chars).i|
|000052f0| 6e 74 20 66 64 6f 75 74 | 3b 0a 73 74 72 75 63 74 |nt fdout|;.struct|
|00005300| 20 64 65 76 20 2a 64 65 | 76 3b 0a 73 68 6f 72 74 | dev *de|v;.short|
|00005310| 20 2a 70 6f 69 6e 74 5f | 6c 69 73 74 2c 2a 66 75 | *point_|list,*fu|
|00005320| 6e 6e 79 5f 69 6e 64 3b | 0a 63 68 61 72 20 2a 66 |nny_ind;|.char *f|
|00005330| 75 6e 6e 79 5f 63 68 61 | 72 73 3b 0a 7b 0a 0a 09 |unny_cha|rs;.{...|
|00005340| 6c 6f 6e 67 20 6c 3b 0a | 0a 09 2f 2a 20 53 65 65 |long l;.|../* See|
|00005350| 6b 20 62 61 63 6b 20 74 | 6f 20 74 68 65 20 62 65 |k back t|o the be|
|00005360| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 74 68 65 20 66 |ginning |of the f|
|00005370| 69 6c 65 20 2a 2f 0a 0a | 09 28 76 6f 69 64 29 6c |ile */..|.(void)l|
|00005380| 73 65 65 6b 28 66 64 6f | 75 74 2c 30 4c 2c 30 29 |seek(fdo|ut,0L,0)|
|00005390| 3b 0a 0a 09 2f 2a 20 64 | 65 76 20 73 74 72 75 63 |;.../* d|ev struc|
|000053a0| 74 75 72 65 20 2a 2f 0a | 09 69 66 28 77 72 69 74 |ture */.|.if(writ|
|000053b0| 65 28 66 64 6f 75 74 2c | 28 63 68 61 72 20 2a 29 |e(fdout,|(char *)|
|000053c0| 64 65 76 2c 73 69 7a 65 | 6f 66 28 73 74 72 75 63 |dev,size|of(struc|
|000053d0| 74 20 64 65 76 29 29 20 | 21 3d 20 73 69 7a 65 6f |t dev)) |!= sizeo|
|000053e0| 66 28 73 74 72 75 63 74 | 20 64 65 76 29 29 0a 09 |f(struct| dev))..|
|000053f0| 7b 0a 09 09 66 70 72 69 | 6e 74 66 28 73 74 64 65 |{...fpri|ntf(stde|
|00005400| 72 72 2c 22 25 73 3a 20 | 77 72 69 74 65 20 64 65 |rr,"%s: |write de|
|00005410| 76 20 73 74 72 75 63 74 | 20 74 6f 20 64 65 73 63 |v struct| to desc|
|00005420| 72 69 70 74 69 6f 6e 20 | 66 69 6c 65 20 66 61 69 |ription |file fai|
|00005430| 6c 65 64 5c 6e 22 2c 50 | 72 6f 67 6e 61 6d 65 29 |led\n",P|rogname)|
|00005440| 3b 0a 09 09 65 78 69 74 | 28 31 29 3b 0a 09 7d 0a |;...exit|(1);..}.|
|00005450| 0a 09 2f 2a 20 70 6f 69 | 6e 74 20 73 69 7a 65 73 |../* poi|nt sizes|
|00005460| 20 74 61 62 6c 65 20 2a | 2f 0a 09 69 66 28 77 72 | table *|/..if(wr|
|00005470| 69 74 65 28 66 64 6f 75 | 74 2c 28 63 68 61 72 20 |ite(fdou|t,(char |
|00005480| 2a 29 70 6f 69 6e 74 5f | 6c 69 73 74 2c 28 69 6e |*)point_|list,(in|
|00005490| 74 29 28 64 65 76 2d 3e | 6e 73 69 7a 65 73 20 2b |t)(dev->|nsizes +|
|000054a0| 31 29 20 2a 20 32 29 20 | 21 3d 20 28 69 6e 74 29 |1) * 2) |!= (int)|
|000054b0| 28 64 65 76 2d 3e 6e 73 | 69 7a 65 73 20 2b 20 31 |(dev->ns|izes + 1|
|000054c0| 29 20 2a 20 32 29 0a 09 | 7b 0a 09 09 66 70 72 69 |) * 2)..|{...fpri|
|000054d0| 6e 74 66 28 73 74 64 65 | 72 72 2c 22 25 73 3a 20 |ntf(stde|rr,"%s: |
|000054e0| 77 72 69 74 65 20 73 69 | 7a 65 20 6c 69 73 74 20 |write si|ze list |
|000054f0| 74 6f 20 64 65 73 63 72 | 69 70 74 69 6f 6e 20 66 |to descr|iption f|
|00005500| 69 6c 65 20 66 61 69 6c | 65 64 5c 6e 22 2c 50 72 |ile fail|ed\n",Pr|
|00005510| 6f 67 6e 61 6d 65 29 3b | 0a 09 09 65 78 69 74 28 |ogname);|...exit(|
|00005520| 31 29 3b 0a 09 7d 0a 0a | 09 2f 2a 20 74 61 62 6c |1);..}..|./* tabl|
|00005530| 65 20 6f 66 20 69 6e 64 | 65 78 65 73 20 69 6e 74 |e of ind|exes int|
|00005540| 6f 20 73 70 65 63 69 61 | 6c 20 63 68 61 72 20 73 |o specia|l char s|
|00005550| 74 72 69 6e 67 73 20 2a | 2f 0a 09 69 66 28 77 72 |trings *|/..if(wr|
|00005560| 69 74 65 28 66 64 6f 75 | 74 2c 28 63 68 61 72 20 |ite(fdou|t,(char |
|00005570| 2a 29 66 75 6e 6e 79 5f | 69 6e 64 2c 28 69 6e 74 |*)funny_|ind,(int|
|00005580| 29 28 64 65 76 2d 3e 6e | 63 68 74 61 62 20 2a 20 |)(dev->n|chtab * |
|00005590| 32 29 29 20 21 3d 20 28 | 69 6e 74 29 28 64 65 76 |2)) != (|int)(dev|
|000055a0| 2d 3e 6e 63 68 74 61 62 | 20 2a 20 32 29 29 0a 09 |->nchtab| * 2))..|
|000055b0| 7b 0a 09 09 66 70 72 69 | 6e 74 66 28 73 74 64 65 |{...fpri|ntf(stde|
|000055c0| 72 72 2c 22 25 73 3a 20 | 77 72 69 74 65 20 69 6e |rr,"%s: |write in|
|000055d0| 64 65 78 20 6c 69 73 74 | 20 74 6f 20 64 65 73 63 |dex list| to desc|
|000055e0| 72 69 70 74 69 6f 6e 20 | 66 69 6c 65 20 66 61 69 |ription |file fai|
|000055f0| 6c 65 64 5c 6e 22 2c 50 | 72 6f 67 6e 61 6d 65 29 |led\n",P|rogname)|
|00005600| 3b 0a 09 09 65 78 69 74 | 28 31 29 3b 0a 09 7d 0a |;...exit|(1);..}.|
|00005610| 0a 09 2f 2a 20 73 70 65 | 63 69 61 6c 20 63 68 61 |../* spe|cial cha|
|00005620| 72 20 73 74 72 69 6e 67 | 73 20 2a 2f 0a 09 69 66 |r string|s */..if|
|00005630| 28 77 72 69 74 65 28 66 | 64 6f 75 74 2c 66 75 6e |(write(f|dout,fun|
|00005640| 6e 79 5f 63 68 61 72 73 | 2c 28 69 6e 74 29 28 64 |ny_chars|,(int)(d|
|00005650| 65 76 2d 3e 6c 63 68 6e | 61 6d 65 29 29 20 21 3d |ev->lchn|ame)) !=|
|00005660| 20 28 69 6e 74 29 28 64 | 65 76 2d 3e 6c 63 68 6e | (int)(d|ev->lchn|
|00005670| 61 6d 65 29 29 0a 09 7b | 0a 09 09 66 70 72 69 6e |ame))..{|...fprin|
|00005680| 74 66 28 73 74 64 65 72 | 72 2c 22 25 73 3a 20 77 |tf(stder|r,"%s: w|
|00005690| 72 69 74 65 20 66 75 6e | 6e 79 20 63 68 61 72 20 |rite fun|ny char |
|000056a0| 73 74 72 69 6e 67 73 20 | 74 6f 20 64 65 73 63 72 |strings |to descr|
|000056b0| 69 70 74 69 6f 6e 20 66 | 69 6c 65 20 66 61 69 6c |iption f|ile fail|
|000056c0| 65 64 5c 6e 22 2c 50 72 | 6f 67 6e 61 6d 65 29 3b |ed\n",Pr|ogname);|
|000056d0| 0a 09 09 65 78 69 74 28 | 31 29 3b 0a 09 7d 0a 09 |...exit(|1);..}..|
|000056e0| 6c 20 3d 20 6c 73 65 65 | 6b 28 66 64 6f 75 74 2c |l = lsee|k(fdout,|
|000056f0| 30 4c 2c 31 29 3b 0a 7d | 0a 00 00 00 00 00 00 00 |0L,1);.}|........|
|00005700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005800| 6d 6b 66 6f 6e 74 2f 6d | 6b 66 6f 6e 74 2e 63 00 |mkfont/m|kfont.c.|
|00005810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00005880| 20 20 31 37 31 30 37 20 | 20 34 34 30 34 30 34 36 | 17107 | 4404046|
|00005890| 31 32 36 20 20 20 37 30 | 36 37 00 20 00 00 00 00 |126 70|67. ....|
|000058a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a00| 73 74 61 74 69 63 20 63 | 68 61 72 20 2a 52 43 53 |static c|har *RCS|
|00005a10| 69 64 20 3d 20 22 24 48 | 65 61 64 65 72 3a 20 6d |id = "$H|eader: m|
|00005a20| 6b 66 6f 6e 74 2e 63 2c | 76 20 31 2e 31 20 38 37 |kfont.c,|v 1.1 87|
|00005a30| 2f 31 30 2f 32 33 20 31 | 39 3a 30 38 3a 31 30 20 |/10/23 1|9:08:10 |
|00005a40| 73 79 73 61 64 20 45 78 | 70 20 24 22 3b 0a 0a 2f |sysad Ex|p $";../|
|00005a50| 2a 0a 20 2a 20 24 4c 6f | 67 3a 09 6d 6b 66 6f 6e |*. * $Lo|g:.mkfon|
|00005a60| 74 2e 63 2c 76 20 24 0a | 20 2a 20 52 65 76 69 73 |t.c,v $.| * Revis|
|00005a70| 69 6f 6e 20 31 2e 31 20 | 20 38 37 2f 31 30 2f 32 |ion 1.1 | 87/10/2|
|00005a80| 33 20 20 31 39 3a 30 38 | 3a 31 30 20 20 73 79 73 |3 19:08|:10 sys|
|00005a90| 61 64 0a 20 2a 20 49 6e | 69 74 69 61 6c 20 72 65 |ad. * In|itial re|
|00005aa0| 76 69 73 69 6f 6e 0a 20 | 2a 20 0a 20 2a 20 0a 20 |vision. |* . * . |
|00005ab0| 2a 2f 0a 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |*/..#inc|lude <st|
|00005ac0| 64 69 6f 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |dio.h>.#|include |
|00005ad0| 3c 73 79 73 2f 66 69 6c | 65 2e 68 3e 0a 23 69 6e |<sys/fil|e.h>.#in|
|00005ae0| 63 6c 75 64 65 20 22 66 | 6f 6e 74 2e 68 22 0a 23 |clude "f|ont.h".#|
|00005af0| 69 66 64 65 66 20 53 59 | 53 35 0a 23 64 65 66 69 |ifdef SY|S5.#defi|
|00005b00| 6e 65 09 62 7a 65 72 6f | 28 61 2c 62 29 09 6d 65 |ne.bzero|(a,b).me|
|00005b10| 6d 73 65 74 28 61 2c 30 | 2c 62 29 0a 23 65 6e 64 |mset(a,0|,b).#end|
|00005b20| 69 66 0a 0a 23 64 65 66 | 69 6e 65 20 4e 43 48 41 |if..#def|ine NCHA|
|00005b30| 52 4d 41 58 09 32 35 36 | 09 09 09 2f 2a 20 6d 61 |RMAX.256|.../* ma|
|00005b40| 78 20 63 68 61 72 73 20 | 69 6e 20 66 6f 6e 74 20 |x chars |in font |
|00005b50| 2a 2f 0a 23 64 65 66 69 | 6e 65 09 4e 41 53 43 09 |*/.#defi|ne.NASC.|
|00005b60| 09 39 36 09 09 09 2f 2a | 20 6e 75 6d 62 65 72 20 |.96.../*| number |
|00005b70| 6f 66 20 70 72 69 6e 74 | 61 62 6c 65 20 61 73 63 |of print|able asc|
|00005b80| 69 69 20 63 68 61 72 73 | 20 2a 2f 0a 23 64 65 66 |ii chars| */.#def|
|00005b90| 69 6e 65 09 42 59 54 45 | 09 09 30 78 66 66 09 09 |ine.BYTE|..0xff..|
|00005ba0| 2f 2a 20 6d 61 73 6b 20 | 2a 2f 0a 23 64 65 66 69 |/* mask |*/.#defi|
|00005bb0| 6e 65 09 53 48 4f 52 54 | 09 09 30 78 66 66 66 66 |ne.SHORT|..0xffff|
|00005bc0| 09 09 2f 2a 20 6d 61 73 | 6b 20 2a 2f 0a 0a 65 78 |../* mas|k */..ex|
|00005bd0| 74 65 72 6e 20 63 68 61 | 72 20 2a 6d 61 6c 6c 6f |tern cha|r *mallo|
|00005be0| 63 28 29 2c 2a 73 61 76 | 65 73 74 72 28 29 2c 2a |c(),*sav|estr(),*|
|00005bf0| 6e 65 78 74 77 6f 72 64 | 28 29 2c 2a 66 67 65 74 |nextword|(),*fget|
|00005c00| 73 28 29 3b 0a 65 78 74 | 65 72 6e 20 46 49 4c 45 |s();.ext|ern FILE|
|00005c10| 20 2a 66 6f 70 65 6e 28 | 29 3b 0a 65 78 74 65 72 | *fopen(|);.exter|
|00005c20| 6e 20 63 68 61 72 20 2a | 50 72 6f 67 6e 61 6d 65 |n char *|Progname|
|00005c30| 3b 0a 65 78 74 65 72 6e | 20 69 6e 74 20 63 6f 6d |;.extern| int com|
|00005c40| 70 61 74 3b 0a 0a 2f 2a | 20 52 65 61 64 20 74 68 |pat;../*| Read th|
|00005c50| 65 20 61 73 63 69 69 20 | 66 6f 6e 74 20 64 65 73 |e ascii |font des|
|00005c60| 63 72 69 70 74 69 6f 6e | 20 66 69 6c 65 73 2c 20 |cription| files, |
|00005c70| 61 6e 64 20 77 72 69 74 | 65 20 74 68 65 20 62 69 |and writ|e the bi|
|00005c80| 6e 61 72 79 20 66 69 6c | 65 73 2e 20 2a 2f 0a 2f |nary fil|es. */./|
|00005c90| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |* | |
|00005ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005cd0| 20 20 20 20 20 2a 2f 0a | 0a 64 6f 5f 66 6f 6e 74 | */.|.do_font|
|00005ce0| 28 66 6f 6e 74 6e 61 6d | 65 2c 66 75 6e 6e 79 5f |(fontnam|e,funny_|
|00005cf0| 63 68 61 72 73 2c 66 75 | 6e 6e 79 5f 69 6e 64 2c |chars,fu|nny_ind,|
|00005d00| 6e 63 68 74 61 62 2c 66 | 64 6f 75 74 29 0a 63 68 |nchtab,f|dout).ch|
|00005d10| 61 72 20 2a 66 6f 6e 74 | 6e 61 6d 65 2c 2a 66 75 |ar *font|name,*fu|
|00005d20| 6e 6e 79 5f 63 68 61 72 | 73 3b 0a 73 68 6f 72 74 |nny_char|s;.short|
|00005d30| 20 2a 66 75 6e 6e 79 5f | 69 6e 64 3b 0a 69 6e 74 | *funny_|ind;.int|
|00005d40| 20 6e 63 68 74 61 62 2c | 66 64 6f 75 74 3b 0a 7b | nchtab,|fdout;.{|
|00005d50| 0a 09 46 49 4c 45 20 2a | 73 72 63 3b 0a 09 63 68 |..FILE *|src;..ch|
|00005d60| 61 72 20 6d 79 62 75 66 | 5b 32 35 36 5d 3b 0a 09 |ar mybuf|[256];..|
|00005d70| 2f 2a 20 61 6c 6c 6f 63 | 61 74 65 20 74 68 65 6d |/* alloc|ate them|
|00005d80| 20 6a 75 73 74 20 6f 6e | 63 65 20 2a 2f 0a 09 73 | just on|ce */..s|
|00005d90| 74 61 74 69 63 20 63 68 | 61 72 20 2a 77 69 64 74 |tatic ch|ar *widt|
|00005da0| 68 2c 2a 6b 65 72 6e 2c | 2a 63 6f 64 65 2c 2a 66 |h,*kern,|*code,*f|
|00005db0| 6f 6e 74 69 6e 64 65 78 | 20 3d 20 28 63 68 61 72 |ontindex| = (char|
|00005dc0| 20 2a 29 30 3b 0a 09 0a | 09 73 74 72 75 63 74 20 | *)0;...|.struct |
|00005dd0| 46 6f 6e 74 20 66 6f 6e | 74 3b 0a 09 63 68 61 72 |Font fon|t;..char|
|00005de0| 20 2a 77 6f 72 64 3b 0a | 09 69 6e 74 20 64 65 73 | *word;.|.int des|
|00005df0| 74 2c 73 70 61 63 65 77 | 69 64 74 68 2c 6e 77 66 |t,spacew|idth,nwf|
|00005e00| 6f 6e 74 2c 69 6e 64 78 | 3b 0a 0a 09 2f 2a 20 54 |ont,indx|;.../* T|
|00005e10| 68 65 20 61 73 63 69 69 | 20 73 6f 75 72 63 65 20 |he ascii| source |
|00005e20| 66 69 6c 65 2c 20 6e 61 | 6d 65 64 20 62 79 20 74 |file, na|med by t|
|00005e30| 68 65 20 66 6f 6e 74 20 | 6e 61 6d 65 2e 20 2a 2f |he font |name. */|
|00005e40| 0a 09 69 66 28 28 73 72 | 63 20 3d 20 66 6f 70 65 |..if((sr|c = fope|
|00005e50| 6e 28 66 6f 6e 74 6e 61 | 6d 65 2c 22 72 22 29 29 |n(fontna|me,"r"))|
|00005e60| 20 3d 3d 20 28 46 49 4c | 45 20 2a 29 30 29 0a 09 | == (FIL|E *)0)..|
|00005e70| 7b 0a 09 09 66 70 72 69 | 6e 74 66 28 73 74 64 65 |{...fpri|ntf(stde|
|00005e80| 72 72 2c 22 25 73 3a 20 | 63 61 6e 27 74 20 6f 70 |rr,"%s: |can't op|
|00005e90| 65 6e 20 66 6f 6e 74 20 | 25 73 5c 6e 22 2c 50 72 |en font |%s\n",Pr|
|00005ea0| 6f 67 6e 61 6d 65 2c 66 | 6f 6e 74 6e 61 6d 65 29 |ogname,f|ontname)|
|00005eb0| 3b 0a 09 09 65 78 69 74 | 28 31 29 3b 0a 09 7d 0a |;...exit|(1);..}.|
|00005ec0| 0a 09 2f 2a 20 63 72 65 | 61 74 65 20 74 68 65 20 |../* cre|ate the |
|00005ed0| 62 69 6e 61 72 79 20 66 | 6f 6e 74 20 66 61 63 65 |binary f|ont face|
|00005ee0| 20 66 69 6c 65 20 2a 2f | 0a 09 73 70 72 69 6e 74 | file */|..sprint|
|00005ef0| 66 28 6d 79 62 75 66 2c | 22 25 73 2e 6f 75 74 22 |f(mybuf,|"%s.out"|
|00005f00| 2c 66 6f 6e 74 6e 61 6d | 65 29 3b 0a 09 69 66 28 |,fontnam|e);..if(|
|00005f10| 28 64 65 73 74 20 3d 20 | 6f 70 65 6e 28 6d 79 62 |(dest = |open(myb|
|00005f20| 75 66 2c 4f 5f 43 52 45 | 41 54 20 7c 20 4f 5f 57 |uf,O_CRE|AT | O_W|
|00005f30| 52 4f 4e 4c 59 2c 30 36 | 34 34 29 29 20 3c 20 30 |RONLY,06|44)) < 0|
|00005f40| 29 0a 09 7b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |)..{...f|printf(s|
|00005f50| 74 64 65 72 72 2c 22 25 | 73 3a 20 63 61 6e 27 74 |tderr,"%|s: can't|
|00005f60| 20 63 72 65 61 74 65 20 | 66 6f 6e 74 20 25 73 20 | create |font %s |
|00005f70| 6f 75 74 70 75 74 20 66 | 69 6c 65 5c 6e 22 2c 50 |output f|ile\n",P|
|00005f80| 72 6f 67 6e 61 6d 65 2c | 6d 79 62 75 66 29 3b 0a |rogname,|mybuf);.|
|00005f90| 09 09 65 78 69 74 28 31 | 29 3b 0a 09 7d 0a 09 66 |..exit(1|);..}..f|
|00005fa0| 6f 6e 74 69 6e 64 65 78 | 20 3d 20 77 69 64 74 68 |ontindex| = width|
|00005fb0| 20 3d 20 6b 65 72 6e 20 | 3d 20 63 6f 64 65 20 3d | = kern |= code =|
|00005fc0| 20 28 63 68 61 72 20 2a | 29 30 3b 0a 0a 09 73 70 | (char *|)0;...sp|
|00005fd0| 61 63 65 77 69 64 74 68 | 20 3d 20 30 3b 0a 09 66 |acewidth| = 0;..f|
|00005fe0| 6f 6e 74 2e 6c 69 67 66 | 6f 6e 74 20 3d 20 28 63 |ont.ligf|ont = (c|
|00005ff0| 68 61 72 29 30 3b 0a 0a | 20 20 20 20 2f 2a 20 42 |har)0;..| /* B|
|00006000| 75 69 6c 64 20 74 68 65 | 20 66 6f 6e 74 20 73 74 |uild the| font st|
|00006010| 72 75 63 74 75 72 65 2e | 20 20 20 20 20 20 20 20 |ructure.| |
|00006020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 2f | | */|
|00006040| 0a 0a 09 77 68 69 6c 65 | 28 66 67 65 74 73 28 6d |...while|(fgets(m|
|00006050| 79 62 75 66 2c 32 35 36 | 2c 73 72 63 29 29 0a 09 |ybuf,256|,src))..|
|00006060| 7b 0a 09 09 77 6f 72 64 | 20 3d 20 6e 65 78 74 77 |{...word| = nextw|
|00006070| 6f 72 64 28 22 22 29 3b | 09 2f 2a 20 72 65 73 65 |ord("");|./* rese|
|00006080| 74 20 74 6f 20 62 65 67 | 69 6e 6e 69 6e 67 20 6f |t to beg|inning o|
|00006090| 66 20 6c 69 6e 65 20 2a | 2f 0a 09 09 77 6f 72 64 |f line *|/...word|
|000060a0| 20 3d 20 6e 65 78 74 77 | 6f 72 64 28 6d 79 62 75 | = nextw|ord(mybu|
|000060b0| 66 29 3b 0a 09 09 69 66 | 28 21 77 6f 72 64 20 7c |f);...if|(!word ||
|000060c0| 7c 20 21 2a 77 6f 72 64 | 20 7c 7c 20 28 2a 77 6f || !*word| || (*wo|
|000060d0| 72 64 20 3d 3d 20 27 23 | 27 29 29 0a 09 09 09 63 |rd == '#|'))....c|
|000060e0| 6f 6e 74 69 6e 75 65 3b | 0a 09 09 69 66 28 73 74 |ontinue;|...if(st|
|000060f0| 72 63 6d 70 28 77 6f 72 | 64 2c 22 63 68 61 72 73 |rcmp(wor|d,"chars|
|00006100| 65 74 22 29 20 3d 3d 20 | 30 29 0a 09 09 09 62 72 |et") == |0)....br|
|00006110| 65 61 6b 3b 0a 09 09 69 | 66 28 73 74 72 63 6d 70 |eak;...i|f(strcmp|
|00006120| 28 77 6f 72 64 2c 22 6e | 61 6d 65 22 29 20 3d 3d |(word,"n|ame") ==|
|00006130| 20 30 29 0a 09 09 09 73 | 74 72 6e 63 70 79 28 66 | 0)....s|trncpy(f|
|00006140| 6f 6e 74 2e 6e 61 6d 65 | 66 6f 6e 74 2c 6e 65 78 |ont.name|font,nex|
|00006150| 74 77 6f 72 64 28 6d 79 | 62 75 66 29 2c 31 30 29 |tword(my|buf),10)|
|00006160| 3b 0a 09 09 65 6c 73 65 | 20 69 66 28 73 74 72 63 |;...else| if(strc|
|00006170| 6d 70 28 77 6f 72 64 2c | 22 69 6e 74 65 72 6e 61 |mp(word,|"interna|
|00006180| 6c 6e 61 6d 65 22 29 20 | 3d 3d 20 30 29 0a 09 09 |lname") |== 0)...|
|00006190| 09 73 74 72 6e 63 70 79 | 28 66 6f 6e 74 2e 69 6e |.strncpy|(font.in|
|000061a0| 74 6e 61 6d 65 2c 6e 65 | 78 74 77 6f 72 64 28 6d |tname,ne|xtword(m|
|000061b0| 79 62 75 66 29 2c 31 30 | 29 3b 0a 09 09 65 6c 73 |ybuf),10|);...els|
|000061c0| 65 20 69 66 28 73 74 72 | 63 6d 70 28 77 6f 72 64 |e if(str|cmp(word|
|000061d0| 2c 22 73 70 61 63 65 77 | 69 64 74 68 22 29 20 3d |,"spacew|idth") =|
|000061e0| 3d 20 30 29 0a 09 09 09 | 73 70 61 63 65 77 69 64 |= 0)....|spacewid|
|000061f0| 74 68 20 3d 20 61 74 6f | 69 28 6e 65 78 74 77 6f |th = ato|i(nextwo|
|00006200| 72 64 28 6d 79 62 75 66 | 29 29 20 26 20 42 59 54 |rd(mybuf|)) & BYT|
|00006210| 45 3b 0a 09 09 65 6c 73 | 65 20 69 66 28 73 74 72 |E;...els|e if(str|
|00006220| 63 6d 70 28 77 6f 72 64 | 2c 22 73 70 65 63 69 61 |cmp(word|,"specia|
|00006230| 6c 22 29 20 3d 3d 20 30 | 29 0a 09 09 09 66 6f 6e |l") == 0|)....fon|
|00006240| 74 2e 73 70 65 63 66 6f | 6e 74 20 3d 20 20 30 78 |t.specfo|nt = 0x|
|00006250| 30 31 3b 0a 09 09 65 6c | 73 65 20 69 66 28 73 74 |01;...el|se if(st|
|00006260| 72 63 6d 70 28 77 6f 72 | 64 2c 22 6c 69 67 61 74 |rcmp(wor|d,"ligat|
|00006270| 75 72 65 73 22 29 20 3d | 3d 20 30 29 0a 09 09 7b |ures") =|= 0)...{|
|00006280| 0a 09 09 09 77 68 69 6c | 65 28 77 6f 72 64 20 3d |....whil|e(word =|
|00006290| 20 6e 65 78 74 77 6f 72 | 64 28 6d 79 62 75 66 29 | nextwor|d(mybuf)|
|000062a0| 29 0a 09 09 09 7b 0a 09 | 09 09 09 69 66 28 2a 77 |)....{..|...if(*w|
|000062b0| 6f 72 64 20 3d 3d 20 27 | 30 27 29 0a 09 09 09 09 |ord == '|0').....|
|000062c0| 09 62 72 65 61 6b 3b 0a | 09 09 09 09 65 6c 73 65 |.break;.|....else|
|000062d0| 20 69 66 28 73 74 72 63 | 6d 70 28 77 6f 72 64 2c | if(strc|mp(word,|
|000062e0| 22 66 69 22 29 20 3d 3d | 20 30 29 0a 09 09 09 09 |"fi") ==| 0).....|
|000062f0| 09 66 6f 6e 74 2e 6c 69 | 67 66 6f 6e 74 20 7c 3d |.font.li|gfont |=|
|00006300| 20 4c 49 47 5f 46 49 3b | 0a 09 09 09 09 65 6c 73 | LIG_FI;|.....els|
|00006310| 65 20 69 66 28 73 74 72 | 63 6d 70 28 77 6f 72 64 |e if(str|cmp(word|
|00006320| 2c 22 66 6c 22 29 20 3d | 3d 20 30 29 0a 09 09 09 |,"fl") =|= 0)....|
|00006330| 09 09 66 6f 6e 74 2e 6c | 69 67 66 6f 6e 74 20 7c |..font.l|igfont ||
|00006340| 3d 20 4c 49 47 5f 46 4c | 3b 0a 09 09 09 09 65 6c |= LIG_FL|;.....el|
|00006350| 73 65 20 69 66 28 73 74 | 72 63 6d 70 28 77 6f 72 |se if(st|rcmp(wor|
|00006360| 64 2c 22 66 66 22 29 20 | 3d 3d 20 30 29 0a 09 09 |d,"ff") |== 0)...|
|00006370| 09 09 09 66 6f 6e 74 2e | 6c 69 67 66 6f 6e 74 20 |...font.|ligfont |
|00006380| 7c 3d 20 4c 49 47 5f 46 | 46 3b 0a 09 09 09 09 65 ||= LIG_F|F;.....e|
|00006390| 6c 73 65 20 69 66 28 73 | 74 72 63 6d 70 28 77 6f |lse if(s|trcmp(wo|
|000063a0| 72 64 2c 22 66 66 69 22 | 29 20 3d 3d 20 30 29 0a |rd,"ffi"|) == 0).|
|000063b0| 09 09 09 09 09 66 6f 6e | 74 2e 6c 69 67 66 6f 6e |.....fon|t.ligfon|
|000063c0| 74 20 7c 3d 20 4c 49 47 | 5f 46 46 49 3b 0a 09 09 |t |= LIG|_FFI;...|
|000063d0| 09 09 65 6c 73 65 20 69 | 66 28 73 74 72 63 6d 70 |..else i|f(strcmp|
|000063e0| 28 77 6f 72 64 2c 22 66 | 66 6c 22 29 20 3d 3d 20 |(word,"f|fl") == |
|000063f0| 30 29 0a 09 09 09 09 09 | 66 6f 6e 74 2e 6c 69 67 |0)......|font.lig|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.