mirror of https://github.com/mpv-player/mpv
sub: add --sub-text-bold option
This was basically requested.
This commit is contained in:
parent
9e98702493
commit
f9db94ab71
|
@ -2405,6 +2405,9 @@ OSD
|
||||||
``--osd-blur=<0..20.0>``, ``--sub-text-blur=<0..20.0>``
|
``--osd-blur=<0..20.0>``, ``--sub-text-blur=<0..20.0>``
|
||||||
Gaussian blur factor. 0 means no blur applied (default).
|
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>``
|
``--osd-border-color=<color>``, ``--sub-text-border-color=<color>``
|
||||||
See ``--osd-color``. Color used for the OSD/sub font border.
|
See ``--osd-color``. Color used for the OSD/sub font border.
|
||||||
|
|
||||||
|
|
|
@ -74,6 +74,7 @@ void mp_ass_set_style(ASS_Style *style, double res_y,
|
||||||
style->ScaleY = 1.;
|
style->ScaleY = 1.;
|
||||||
style->Alignment = 1 + (opts->align_x + 1) + (opts->align_y + 2) % 3 * 4;
|
style->Alignment = 1 + (opts->align_x + 1) + (opts->align_y + 2) % 3 * 4;
|
||||||
style->Blur = opts->blur;
|
style->Blur = opts->blur;
|
||||||
|
style->Bold = opts->bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add default styles, if the track does not have any styles yet.
|
// 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,
|
OPT_CHOICE("align-y", align_y, 0,
|
||||||
({"top", -1}, {"center", 0}, {"bottom", +1})),
|
({"top", -1}, {"center", 0}, {"bottom", +1})),
|
||||||
OPT_FLOATRANGE("blur", blur, 0, 0, 20),
|
OPT_FLOATRANGE("blur", blur, 0, 0, 20),
|
||||||
|
OPT_FLAG("bold", bold, 0),
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue