bmp2font: explain
This commit is contained in:
parent
764950b2a1
commit
65be1051b3
10
bmp2font.c
10
bmp2font.c
@ -1,3 +1,13 @@
|
|||||||
|
/* This script os meant to convert a 256x256 pixel bitmap into an bitmap of
|
||||||
|
* 8x8 pixel characters. When deciding upon the output format, i had the
|
||||||
|
* video output of scanlines in mind. So there are 8 sections for each row
|
||||||
|
* of pixels for a character cell, each secton containing the the pixel line
|
||||||
|
* data of all 256 character codes. If you align this blob to 256-bytes, you
|
||||||
|
* quickly fetch the data by pointing bx to the begin of the section for the
|
||||||
|
* pixel line you are currently drawing, then set bl to the character value
|
||||||
|
* you want to print and dereference [bx].
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user