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
This commit is contained in:
Frédéric Brière
2022-02-10 21:36:34 -05:00
committed by Dudemanguy
parent 022790a2b4
commit 779d4f99a7
8 changed files with 26 additions and 10 deletions

View File

@@ -157,6 +157,7 @@ struct osd_style_opts {
bool italic;
int justify;
int font_provider;
char *fonts_dir;
};
extern const struct m_sub_options osd_style_conf;