summaryrefslogtreecommitdiffstats
path: root/TOOLS/subfont-c
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/subfont-c')
-rw-r--r--TOOLS/subfont-c/osd/gen_osd_h.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/TOOLS/subfont-c/osd/gen_osd_h.c b/TOOLS/subfont-c/osd/gen_osd_h.c
new file mode 100644
index 0000000000..ad59c7ef99
--- /dev/null
+++ b/TOOLS/subfont-c/osd/gen_osd_h.c
@@ -0,0 +1,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");
+}