From 05f18ac5c65755e1dde4d4bd44575011310bc648 Mon Sep 17 00:00:00 2001 From: epochqwert Date: Thu, 28 May 2015 07:16:46 -0500 Subject: added quot to the html entities programs cat fontfile.808 | fontdump > editme.font ; cat editme.font | fontbuild.sh > filefile2.808 the fontstuff is for text-mode fonts for NetBSD. at least. can probably be used for any binary files if you want. only support for 8x8 fonts in build atm. mime-type got a fix for css --- src/bin/fontbuild.c | 21 +++++++++++++++++++++ src/bin/fontdump.c | 19 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 src/bin/fontbuild.c create mode 100644 src/bin/fontdump.c (limited to 'src') 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 +#include + +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 +#include + +int main(int argc,char *argv[]) { + int i,j,k; + int height=argc>1?atoi(argv[1]):8; + char *map=malloc(height); + for(i=0;i<256;i++) { + printf("0x%02x (%3d) '%c'\n",i,i,isprint(i)?i:'?'); + read(0,map,height); + for(j=0;j=0;k--) { + printf("%c",(map[j]>>k&1)?'#':' '); + } + printf("\n"); + } + } + return 0; +} -- cgit v1.2.3