diff options
author | wm4 <wm4@nowhere> | 2015-04-01 22:58:12 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-01 22:58:12 +0200 |
commit | f9db94ab71ccaf1e5639f28e69f07ccc164e130f (patch) | |
tree | 3f07472f7e38d81cce46464edfefd9d9952b02d3 | |
parent | 9e98702493068b28cbbbed56ff6b91e60c5e3b46 (diff) | |
download | mpv-f9db94ab71ccaf1e5639f28e69f07ccc164e130f.tar.bz2 mpv-f9db94ab71ccaf1e5639f28e69f07ccc164e130f.tar.xz |
sub: add --sub-text-bold option
This was basically requested.
-rw-r--r-- | DOCS/man/options.rst | 3 | ||||
-rw-r--r-- | sub/ass_mp.c | 1 | ||||
-rw-r--r-- | sub/osd.c | 1 | ||||
-rw-r--r-- | sub/osd.h | 1 |
4 files changed, 6 insertions, 0 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 32180b7cf0..e86bb812d1 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -2405,6 +2405,9 @@ OSD ``--osd-blur=<0..20.0>``, ``--sub-text-blur=<0..20.0>`` Gaussian blur factor. 0 means no blur applied (default). +``--osd-bold=<yes|no>``, ``--sub-text-bold=<yes|no>`` + Format text on bold. + ``--osd-border-color=<color>``, ``--sub-text-border-color=<color>`` See ``--osd-color``. Color used for the OSD/sub font border. diff --git a/sub/ass_mp.c b/sub/ass_mp.c index a02ff8d632..1570aaed0c 100644 --- a/sub/ass_mp.c +++ b/sub/ass_mp.c @@ -74,6 +74,7 @@ void mp_ass_set_style(ASS_Style *style, double res_y, style->ScaleY = 1.; style->Alignment = 1 + (opts->align_x + 1) + (opts->align_y + 2) % 3 * 4; style->Blur = opts->blur; + style->Bold = opts->bold; } // Add default styles, if the track does not have any styles yet. @@ -59,6 +59,7 @@ static const m_option_t style_opts[] = { OPT_CHOICE("align-y", align_y, 0, ({"top", -1}, {"center", 0}, {"bottom", +1})), OPT_FLOATRANGE("blur", blur, 0, 0, 20), + OPT_FLAG("bold", bold, 0), {0} }; @@ -135,6 +135,7 @@ struct osd_style_opts { int align_x; int align_y; float blur; + int bold; }; extern const struct m_sub_options osd_style_conf; |