mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
committed by
Dudemanguy
parent
022790a2b4
commit
779d4f99a7
@@ -67,6 +67,8 @@ static const m_option_t style_opts[] = {
|
||||
{"auto", 0}, {"left", 1}, {"center", 2}, {"right", 3})},
|
||||
{"font-provider", OPT_CHOICE(font_provider,
|
||||
{"auto", 0}, {"none", 1}, {"fontconfig", 2}), .flags = UPDATE_SUB_HARD},
|
||||
{"fonts-dir", OPT_STRING(fonts_dir),
|
||||
.flags = M_OPT_FILE | UPDATE_SUB_HARD},
|
||||
{0}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user