From 71e51d948cbdcd8c1b75a06841a6601d9a9e3d9e Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 28 Jul 2012 23:03:19 +0200 Subject: osd: osd_font.h -> osd_font.pfb osd_font.pfb is an actual font file extracted from osd_font.h. file2string.py is used to turn it back into a header during the build process. --- sub/osd_libass.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sub/osd_libass.c') diff --git a/sub/osd_libass.c b/sub/osd_libass.c index 392731876d..73edd78118 100644 --- a/sub/osd_libass.c +++ b/sub/osd_libass.c @@ -27,7 +27,9 @@ #include "sub.h" #include "libavutil/common.h" +static const char osd_font_pfb[] = #include "sub/osd_font.h" +; #include "sub/ass_mp.h" #include "mp_core.h" @@ -43,7 +45,7 @@ void osd_init_backend(struct osd_state *osd) { ass_add_font(osd->ass_library, "OSD", (void *)osd_font_pfb, - sizeof(osd_font_pfb)); + sizeof(osd_font_pfb) - 1); osd->osd_render = ass_renderer_init(osd->ass_library); mp_ass_configure_fonts(osd->osd_render); -- cgit v1.2.3