File: chartfont.c

package info (click to toggle)
dgen 1.23-9
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 2,168 kB
  • ctags: 3,087
  • sloc: ansic: 45,403; cpp: 4,405; sh: 1,960; makefile: 116
file content (15 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* This prints out all the ASCII characters in the format pbm2df expects them
 * You can run this on an xterm with an 8x13 font, and put the resulting
 * screenshot straight into pbm2df!
 */

main()
{
  unsigned char i;
  for(i = ' '; i < 128; ++i)
  {
    printf("%c", i);
    if((i % 32) == 31) printf("\n");
  }
  return 0;
}