summaryrefslogtreecommitdiff
path: root/src/bin/fontbuild.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/fontbuild.c')
-rw-r--r--src/bin/fontbuild.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/bin/fontbuild.c b/src/bin/fontbuild.c
new file mode 100644
index 0000000..b4a212a
--- /dev/null
+++ b/src/bin/fontbuild.c
@@ -0,0 +1,21 @@
+#include <stdio.h>
+#include <stdlib.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;
+}