summaryrefslogtreecommitdiffstats
path: root/sub/osd_libass.c
diff options
context:
space:
mode:
authorFrédéric Brière <fbriere@fbriere.net>2022-02-10 21:36:34 -0500
committerDudemanguy <random342@airmail.cc>2023-03-01 02:09:46 +0000
commit779d4f99a74cce2089f0bf7dc5ed10c7a7ff00a3 (patch)
tree15a744a8531e7151a33d0cd3681f54eb41444940 /sub/osd_libass.c
parent022790a2b49e4d21cb803842cb54958cca9c732e (diff)
downloadmpv-779d4f99a74cce2089f0bf7dc5ed10c7a7ff00a3.tar.bz2
mpv-779d4f99a74cce2089f0bf7dc5ed10c7a7ff00a3.tar.xz
sub: add --sub-fonts-dir and --osd-fonts-dir options
These options make it possible to specify the directory that will be passed to ass_set_fonts_dir(), akin to VLC's `--ssa-fontsdir` and FFmpeg's `fontsdir`. Fixes #8338
Diffstat (limited to 'sub/osd_libass.c')
-rw-r--r--sub/osd_libass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/osd_libass.c b/sub/osd_libass.c
index 35cb4cd5bb..1687f145b3 100644
--- a/sub/osd_libass.c
+++ b/sub/osd_libass.c
@@ -51,7 +51,7 @@ static void create_ass_renderer(struct osd_state *osd, struct ass_state *ass)
return;
ass->log = mp_log_new(NULL, osd->log, "libass");
- ass->library = mp_ass_init(osd->global, ass->log);
+ ass->library = mp_ass_init(osd->global, osd->opts->osd_style, ass->log);
ass_add_font(ass->library, "mpv-osd-symbols", (void *)osd_font_pfb,
sizeof(osd_font_pfb) - 1);