summaryrefslogtreecommitdiffstats
path: root/TOOLS/subfont-c/osd/gen_osd_h.c
blob: ad59c7ef99054eb7202bb3ce516b4719a8b799b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

int main()
{
    int c;
    int cnt;
    printf("unsigned char *osd_font_pfb = {");
    for (cnt = 0;;cnt++) {
	if (cnt % 16 == 0) printf("\n");
	c = getchar();
	if (c < 0) break;
	printf("0x%02x,", c);
    }
    printf("};\n");
}