home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
misc
/
volume1
/
8710
/
18
/
awk-width
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
Text File
|
1990-07-13
|
317 b
|
15 lines
BEGIN {
char = 0
printf "char xxW [256-32] = {\n"
}
$2 == "POINTS" { ps = $1 }
$1 == "32" { char = 1 }
$1 == "127" { char = 0 }
NF > 0 {
if (char == 1) {
width = int ($9 * 8.64 / ps + 0.5)
printf "%d, /* %c */\n", width, $1
}
}
END { printf "} /* from file %s, ps=%f */\n", FILENAME, ps }