osd: osd_font.h -> osd_font.pfb
commit1acb5e7a66c0eea0886e8023e146941952b836be
authorwm4 <wm4@mplayer2.org>
Sat, 28 Jul 2012 21:02:52 +0000 (28 23:02 +0200)
committerUoti Urpala <uau@mplayer2.org>
Mon, 27 Aug 2012 21:19:41 +0000 (28 00:19 +0300)
tree244a6f005d37564a179b648ed724ef5ac62fe68d
parent083e6e3e1a9bf9ee470f59cfd1c775c8724c5ed9
osd: osd_font.h -> osd_font.pfb

Add osd_font.pfb, which is the actual font file that was previously
stored in osd_font.h. Use file2string.py to turn it back into a header
during the build process.

Fix file2string.py to work with the font file. The script was written
to be able to deal with binary files, but it had a bug corrupting some
data: e.g. the byte sequence 0x1 0x37 was printed as "\17" (0x1 was
escaped as "\1", and 0x37 was kept as a literal "7"), which would be
interpreted as the single character 0xF. Always pad octal literals to
length 3, which makes the escape sequences unambiguous.
.gitignore
Makefile
TOOLS/file2string.py
sub/osd_font.h [deleted file]
sub/osd_font.pfb [new file with mode: 0644]
sub/osd_libass.c