summaryrefslogtreecommitdiff
path: root/src/bin/fontbuild.c
blob: 09c0beb57ccf52952ab45c60783fa8793ad8ac4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(int argc,char *argv[]) {
 int i,j,k;
 int height=8;
 int width=8;
 char line;
 char *map=malloc(width);
 for(i=0;i<256;i++) {
  for(j=0;j<height;j++) {
   read(0,map,width);
   line=0;
   for(k=0;k<8;k++) {
    line|=((map[7-k]=='#')<<k);
   }
   printf("%c",line);
  }
 }
 return 0;
}