summaryrefslogtreecommitdiffstats
path: root/sub/osd_libass.c
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-07-28 23:03:19 +0200
committerwm4 <wm4@mplayer2.org>2012-07-28 23:36:08 +0200
commit71e51d948cbdcd8c1b75a06841a6601d9a9e3d9e (patch)
treeac7b71b316fbe3b3ac360e76d4d8f68a74b61da8 /sub/osd_libass.c
parent1ee740cceb2050821c772a574ea984f96389fa29 (diff)
downloadmpv-71e51d948cbdcd8c1b75a06841a6601d9a9e3d9e.tar.bz2
mpv-71e51d948cbdcd8c1b75a06841a6601d9a9e3d9e.tar.xz
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.
Diffstat (limited to 'sub/osd_libass.c')
-rw-r--r--sub/osd_libass.c4
1 files changed, 3 insertions, 1 deletions
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);